Skip to content

Instantly share code, notes, and snippets.

@gabriel-garcia-zz
Created July 1, 2010 14:19
Show Gist options
  • Save gabriel-garcia-zz/460019 to your computer and use it in GitHub Desktop.
Save gabriel-garcia-zz/460019 to your computer and use it in GitHub Desktop.
module OAuth::RequestProxy::Net
module HTTP
class HTTPRequest < OAuth::RequestProxy::Base
def query_string
params = [ query_params, auth_header_params ]
params << post_params if
['POST', 'PUT'].include?(method.to_s.upcase) && form_url_encoded?
params.compact.join('&')
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment