Skip to content

Instantly share code, notes, and snippets.

@xxx
Created November 19, 2010 08:30

Revisions

  1. xxx revised this gist Nov 19, 2010. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original 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
    # force port to 80 for stipple
    uri.port = (uri.scheme == 'https' ? 443 : 80)
    uri.to_s
    end
  2. xxx created this gist Nov 19, 2010.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original 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