Skip to content

won't set Content-Type header when body is not preset#34

Open
damianbl wants to merge 1 commit intotypicode:masterfrom
damianbl:feature/fix-content-type-header
Open

won't set Content-Type header when body is not preset#34
damianbl wants to merge 1 commit intotypicode:masterfrom
damianbl:feature/fix-content-type-header

Conversation

@damianbl
Copy link

  • setting Content-Type:'application/json' is confusing when there is no body in the request

According to W3:

The purpose of the Content-Type field is to describe the data contained in the body fully enough that the receiving user agent can pick an appropriate agent or mechanism to present the data to the user, or otherwise deal with the data in an appropriate manner.

- setting Content-Type:'application/json' is confusing when there is no body in the request
@roccomuso
Copy link

I Agree, this cause errors on some strictly configured web servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants