module Octokit

Ruby toolkit for the GitHub API

Adapted from lostisland/faraday_middleware. Trimmed down to just the logic that we need for octokit.rb.

github.com/lostisland/faraday_middleware/blob/138766e/lib/faraday_middleware/response/follow_redirects.rb