fetchival icon indicating copy to clipboard operation
fetchival copied to clipboard

POST with empty body

Open damianbl opened this issue 8 years ago • 0 comments

POST with empty body is not forbidden by the HTTP spec. However I cannot do it using fetchival. Probably the problem is caused by the Content-Type header (set to "application/json") which is not removed when the body is deleted. It is also expected that when the body is empty the Content-Lenght header is set to 0.

If you agree, I can make a PR fixing it.

Thanks, Damian.

damianbl avatar Jun 23 '17 14:06 damianbl