nodules / asker

http.request wrapper with gzip, request retries and http.Agent tuning
MIT License
93 stars 11 forks source link

When body is object it converts to string #101

Closed ikokostya closed 8 years ago

ikokostya commented 9 years ago

From documentation https://github.com/nodules/asker#options

{*} body — request body. If it's an Object — JSON.stringify is applied, otherwise it's converted to String.

If body option is Object I get [object Object] in request body. I think it's correct behavior, because I don't set bodyEncoding option. This is bug in docs?

kaero commented 9 years ago

Yes, it's correct, doc must be updated