reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Readme error

Open jblok opened this issue 11 years ago • 1 comments

Why does the README contain this example:

reqwest({
    url: 'path/to/html'
  , method: 'get'
  , data: [ { name: 'foo', value: 'bar' }, { name: 'baz', value: 100 } ]
  , success: function (resp) {
      qwery('#content').html(resp)
    }
})

I assume the data being sent, is serialised into the query string parameter? This could be better documented, as it is confusing seeing the method as get, with an object being sent as data.

jblok avatar May 20 '14 13:05 jblok

this should be allowed. it adds the data as a query string instead of a POST body

ded avatar May 20 '14 16:05 ded