vendor/bundle/ruby/2.7.0/gems/octokit-4.20.0/lib/octokit/middleware/follow_redirects.rb
# HTTP methods for which 30x redirects can be followed
HTTP methods for which 30x redirects can be followed
HTTP methods for which 30x redirects can be followed
def same_host?(original_url, redirect_url)
        original_uri = Addressable::URI.parse(original_url)
        redirect_uri = Addressable::URI.parse(redirect_url)
        redirect_uri.host.nil? || original_uri.host == redirect_uri.host
      end
def same_host? ( original_url , redirect_url ) original_uri = Addressable :: URI . parse ( original_url ) redirect_uri = Addressable :: URI . parse ( redirect_url ) redirect_uri . host . nil? || original_uri . host == redirect_uri . host end
HTTP methods for which 30x redirects can be followed
HTTP methods for which 30x redirects can be followed
original_url
<not_specific>
redirect_url
<not_specific>