From: rousskov <> Date: Thu, 26 Feb 1998 07:09:23 +0000 (+0000) Subject: - Fixed bug that removed first line of the message body. X-Git-Tag: SQUID_3_0_PRE1~3982 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2edfbcb74dc10ef80dffd59dcf4b3c13b2abfa5e;p=thirdparty%2Fsquid.git - Fixed bug that removed first line of the message body. - Fixed bug that could ignore first message header. --- diff --git a/src/cachemgr.cc b/src/cachemgr.cc index 2d7a8af3c6..b0be48308c 100644 --- a/src/cachemgr.cc +++ b/src/cachemgr.cc @@ -1,5 +1,5 @@ /* - * $Id: cachemgr.cc,v 1.69 1998/02/25 09:53:55 rousskov Exp $ + * $Id: cachemgr.cc,v 1.70 1998/02/26 00:09:23 rousskov Exp $ * * DEBUG: section 0 CGI Cache Manager * AUTHOR: Duane Wessels @@ -359,7 +359,7 @@ read_reply(int s, cachemgr_request * req) } /* this is a way to pass HTTP status to the Web server */ if (statusStr) - printf("Status: %d %s", status, statusStr); + printf("Status: %d %s\n", status, statusStr); break; case isHeaders: /* forward header field */ @@ -383,7 +383,7 @@ read_reply(int s, cachemgr_request * req) printf("
\n"); } istate = isBody; - break; + /* yes, fall through, we do not want to loose the first line */ case isBody: /* interpret [and reformat] cache response */ if (parse_menu)