apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

Null request body sent as 'null' string

Open grimsa opened this issue 2 years ago • 0 comments

We observed this after upgrading apisauce from 1.1.2 to 2.1.5

We had code similar to apisauceInstance.post('some-url', null, configObject) which then resulted in a null (as a four-letter string) being sent as a request body.

Changing to apisauceInstance.post('some-url', undefined, configObject) reverted to the expected behavior (no request body sent).

This seems to be similar to https://github.com/infinitered/apisauce/issues/9

grimsa avatar Apr 13 '22 13:04 grimsa