Bug Fix: Connection:close with missing Content-Length.

The test and bug report are from tomika.
This commit is contained in:
Ryan
2009-08-21 01:48:20 +02:00
parent f3214f9764
commit efd801f410
3 changed files with 81 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ struct http_parser {
unsigned short method; /* requests only */
short version;
short keep_alive;
size_t content_length;
ssize_t content_length;
/** PUBLIC **/
void *data; /* A pointer to get hook to the "connection" or "socket" object */