Skip to content

Instantly share code, notes, and snippets.

@akitaonrails
Created April 23, 2013 22:14
Show Gist options
  • Save akitaonrails/5447867 to your computer and use it in GitHub Desktop.
Save akitaonrails/5447867 to your computer and use it in GitHub Desktop.
Problem with omniauth returns not gunziping the raw_info data
module AllowGzipInflating
def initialize(m, reqbody, resbody, uri_or_path, initheader = nil)
super
@header["accept-encoding"] = [] if @decode_content
end
end
class Net::HTTPGenericRequest
prepend AllowGzipInflating
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment