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
The current implementation allows the content-type header to be set to text/plain; charset=utf-8 when the request body is not set which is an invalid behavior. As content-type header points to the request's payload.When there is no payload in the request therefore the content type should not be set unless explicitly specified in the spec.
The text was updated successfully, but these errors were encountered:
This commit bears a fix for the case when request body is null but the content-type header is being added unless specified in the spec. This commit address the fix for this and does not allow to add content-type header for null body request.
closes#19
…der (#20)
This commit bears a fix for the case when request body is null but the content-type header is being added unless specified in the spec. This commit address the fix for this and does not allow to add content-type header for null body request.
closes#19
The current implementation allows the content-type header to be set to
text/plain; charset=utf-8
when the request body is not set which is an invalid behavior. As content-type header points to the request's payload.When there is no payload in the request therefore the content type should not be set unless explicitly specified in the spec.The text was updated successfully, but these errors were encountered: