* add the mimeheader length to the number of bytes to read from the client; client_re...
authorWilfried Göesgens <willi@citadel.org>
Tue, 23 Sep 2008 22:27:48 +0000 (22:27 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 23 Sep 2008 22:27:48 +0000 (22:27 +0000)
webcit/webcit.c

index ed2eefc54bb4670794e31eb0a197948d4b8f32d8..78d5193329ed023b9fce8e0ec50be7a4de45078f 100644 (file)
@@ -1470,7 +1470,7 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                body_start = StrLength(content);
 
                /** Read the entire input data at once. */
-               client_read(&WCC->http_sock, content, ReadBuf, ContentLength);
+               client_read(&WCC->http_sock, content, ReadBuf, ContentLength + body_start);
 
                if (!strncasecmp(ChrPtr(ContentType), "application/x-www-form-urlencoded", 33)) {
                        StrBufCutLeft(content, body_start);