Please sign in to comment.
Fix http_request:http_headers/1 to send content-length when length is…
… zero In R16B01, the http_request:http_headers/1 function removes the content-length field from the HTTP headers if the content length is zero. This results in some (perhaps many) HTTP servers rejecting POSTs and PUTs without data with a 411 status word. From RFC2616, section 14.13: "Any Content-Length greater than or EQUAL to zero is a valid value".
- Loading branch information...
Showing with 24 additions and 9 deletions.