From: hno <> Date: Thu, 20 Feb 2003 07:13:04 +0000 (+0000) Subject: Bug #547: "error: invalid HTTP-ident" breaks log processing X-Git-Tag: SQUID_3_0_PRE1~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0769ede7ebe506831f1fe3b8b0d35d9e8c631425;p=thirdparty%2Fsquid.git Bug #547: "error: invalid HTTP-ident" breaks log processing If an invalid HTTP identifier is received then access.log shows "error: invalid HTTP-ident" in the URL column, making problems for log parsers to read the line correctly. --- diff --git a/src/client_side.cc b/src/client_side.cc index cd94b47c34..2804199187 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.621 2003/02/14 23:11:36 hno Exp $ + * $Id: client_side.cc,v 1.622 2003/02/20 00:13:04 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1373,7 +1373,7 @@ parseURIandHTTPVersion(char **url_p, http_version_t * http_ver_p, if (sscanf(token + 5, "%d.%d", &http_ver_p->major, &http_ver_p->minor) != 2) { debug(33, 3) ("parseHttpRequest: Invalid HTTP identifier.\n"); - return parseHttpRequestAbort(conn, "error: invalid HTTP-ident"); + return parseHttpRequestAbort(conn, "error:invalid-http-ident"); } debug(33, 6) ("parseHttpRequest: Client HTTP version %d.%d.\n", http_ver_p->major, http_ver_p->minor);