class Github::Response::FollowRedirects

def initialize(app, options = {})

with the old and new envs
:callback - A callable that will be called on redirects
(default: false)
the HTTP spec when following 301/302
:standards_compliant - A Boolean indicating whether to respect
:limit - A Numeric redirect limit (default: 3)
options - An options Hash (default: {}):

Public: Initialize the middleware.
def initialize(app, options = {})
  super(app)
  @options = options
  @convert_to_get = Set.new [303]
  @convert_to_get << 301 << 302 unless standards_compliant?
end