fetchival icon indicating copy to clipboard operation
fetchival copied to clipboard

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

Open damianbl opened this issue 7 years ago • 1 comments

  • 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.

damianbl avatar Sep 15 '18 07:09 damianbl

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

roccomuso avatar Mar 29 '19 18:03 roccomuso