tjbush / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

Connection closed when request has Content-Length: 0 header #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When a request is handled for which no request body is expected, and thus no 
Req:recv_body() is 
performed, but that request contains a Content-Length header with the value 0, 
then MochiWeb 
closes the connection.

The attached patch fixes the issue.

Original issue reported on code.google.com by cmlenz on 25 May 2008 at 11:07

Attachments:

GoogleCodeExporter commented 8 years ago
Applied in r75. Thanks!

Original comment by bob.ippo...@gmail.com on 26 May 2008 at 6:32