fix issue where body can be empty data on a put/post#3397
fix issue where body can be empty data on a put/post#3397jsjames wants to merge 1 commit intohey-api:mainfrom
Conversation
|
|
|
|
@jsjames is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it. |
|
@mrlubos - was wondering if you could help out with this one. This is preventing us from extending hey-api in a few areas in the openhab app. |
|
@jsjames I'll reply to the issue |
Fixes #3340
Currently when the body data is an empty array or empty object, the stripEmptySlots method will delete the body from the params, which then causes the POST / PUT to not succeed. This ensures that the body is never deleted and only gets added to the params of a PUT/POST when it is defined as a parameter.