Created
November 19, 2010 08:30
Revisions
-
xxx revised this gist
Nov 19, 2010 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ if Rails.env.production? uri = URI.parse(request.url) uri.path = '' uri.query = nil uri.port = (uri.scheme == 'https' ? 443 : 80) uri.to_s end -
xxx created this gist
Nov 19, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ if Rails.env.production? module OmniAuth module Strategy def full_host uri = URI.parse(request.url) uri.path = '' uri.query = nil # force port to 80 for stipple uri.port = (uri.scheme == 'https' ? 443 : 80) uri.to_s end end end end