Skip to content

Instantly share code, notes, and snippets.

View gabriel-garcia-zz's full-sized avatar

Gabriel García gabriel-garcia-zz

  • CitrusByte
  • Uruguay
View GitHub Profile
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