Project

General

Profile

« Previous | Next » 

Revision 02f4ae07

Added by Chris Duryee about 8 years ago

Fixes #14852 - do not pass in "data" param unless needed (#436)

Previously, the "data" param was passed to all oauth requests. This caused
issues with `GET` requests, since `data` and `headers` gets mashed into
`*arguments`, and then the oauth gem will `shift` off the first argument if
there's a `POST` or `PUT` method. The end result was that headers weren't being
sent on `GET` requests.

Instead, only supply the "data" param if we are doing a `POST` or `PUT`.

  • added
  • modified
  • copied
  • renamed
  • deleted