]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change STRICT_HTTP_PARSER to RELAXED_HTTP_PARSER
authorwessels <>
Wed, 8 Apr 1998 06:34:01 +0000 (06:34 +0000)
committerwessels <>
Wed, 8 Apr 1998 06:34:01 +0000 (06:34 +0000)
src/client_side.cc

index a361a4ea927e8eaeb85b69b2cbf177f261d28495..b2e043869245ca226f5a8ea1d15dbdf3ff65fc22 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.261 1998/04/07 23:51:36 wessels Exp $
+ * $Id: client_side.cc,v 1.262 1998/04/08 00:34:01 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1607,7 +1607,9 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
     for (t = token; t && *t && *t != '\n' && *t != '\r'; t++);
     if (t == NULL || *t == '\0' || t == token || strncmp(token, "HTTP/", 5)) {
        debug(33, 3) ("parseHttpRequest: Missing HTTP identifier\n");
-#if STRICT_HTTP_PARSER
+#if RELAXED_HTTP_PARSER
+       http_ver = (float) 0.9; /* wild guess */
+#else
        http = xcalloc(1, sizeof(clientHttpRequest));
        cbdataAdd(http, MEM_NONE);
        http->conn = conn;
@@ -1619,8 +1621,6 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
        *headers_p = inbuf;
        *status = -1;
        return http;
-#else
-       http_ver = (float) 0.9; /* wild guess */
 #endif
     } else
        http_ver = (float) atof(token + 5);