You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't useBody return undefined when no body request sent ?
The text was updated successfully, but these errors were encountered:
hidekatsu-izuno
changed the title
readBody returns empty string when no content is sended.
readBody returns a empty string when no body request is sent
Oct 16, 2022
Fixed by 6a0abf0 in 0.8.x. I think we shall respect content-length at least and early return if non is specified with undefined value which is distinguishable from empty string (JSON)
I sent no body request. Then
readBody
returns empty string. I can also send empty json string and these can not be distincted.Shouldn't
useBody
return undefined when no body request sent ?The text was updated successfully, but these errors were encountered: