From 04506605cb3471438a4134e7f47baf96db9c8fa6 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 3 May 2002 07:39:16 +0000 Subject: [PATCH] Fixed bug with "Content-Length" SVN revision: 58 --- elogd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/elogd.c b/elogd.c index 4f944798..3263bb69 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.21 2002/05/03 07:39:16 midas + Fixed bug with "Content-Length" + Revision 1.20 2002/05/02 15:42:06 midas Removed lingering and do a REUSEADDR by default @@ -8008,7 +8011,9 @@ struct timeval timeout; if (return_length == 0) return_length = strlen_retbuf+1; - if (keep_alive && strstr(return_buffer, "Content-Length") == NULL) + if (keep_alive && strstr(return_buffer, "Content-Length") == NULL || + strstr(return_buffer, "Content-Length") > + strstr(return_buffer, "\r\n\r\n")) { /*---- add content-length ----*/