]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #547: "error: invalid HTTP-ident" breaks log processing
authorhno <>
Thu, 20 Feb 2003 07:13:04 +0000 (07:13 +0000)
committerhno <>
Thu, 20 Feb 2003 07:13:04 +0000 (07:13 +0000)
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.

src/client_side.cc

index cd94b47c346cc3bdf31d976bc6fac0475ccf1360..2804199187a6a8d5df4a07ec658ef07bae5aa8a9 100644 (file)
@@ -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);