Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created March 23, 2013 07:33
Show Gist options
  • Select an option

  • Save zeroeth/5226822 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/5226822 to your computer and use it in GitHub Desktop.
dirty fix for removing ports from rails redirects for Oauth
module OmniAuth
module Strategy
def full_host
uri = URI.parse(request.url)
uri.path = ''
uri.query = nil
uri.port = (uri.scheme == 'https' ? 443 : 80)
uri.to_s
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment