]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- Removed calls to httpHeaderTestParser()
authorrousskov <>
Thu, 2 Apr 1998 12:35:21 +0000 (12:35 +0000)
committerrousskov <>
Thu, 2 Apr 1998 12:35:21 +0000 (12:35 +0000)
- Removed lrand48() from httpHeaderTestParser()

src/HttpHeaderTools.cc
src/client_side.cc

index ed56a5d5900456411b73a23e5314113f98f9a2da..e28585a36468ccd777f918dbf3163467277e3e9a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: HttpHeaderTools.cc,v 1.6 1998/03/20 18:06:39 rousskov Exp $
+ * $Id: HttpHeaderTools.cc,v 1.7 1998/04/02 05:35:22 rousskov Exp $
  *
  * DEBUG: section 66    HTTP Header Tools
  * AUTHOR: Alex Rousskov
@@ -195,11 +195,6 @@ void httpHeaderTestParser(const char *hstr)
     Packer p;
     MemBuf mb;
     assert(hstr);
-    /* disabled for now */
-    /* return; */
-    /* do not print too much, kludge */
-    if (bug_count > 25 && (lrand48() % bug_count) > 3L)
-       return;
     /* skip start line if any */
     if (!strncasecmp(hstr, "HTTP/", 5)) {
        const char *p = strchr(hstr, '\n');
index 4ecbd0e7ee3bdc11b62feb522054e2708e006c03..0ddb6b643ea1ac0218c91a42b5cc21e1353e51ec 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.249 1998/04/02 04:45:04 rousskov Exp $
+ * $Id: client_side.cc,v 1.250 1998/04/02 05:35:21 rousskov Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -892,12 +892,6 @@ clientBuildReplyHeader(clientHttpRequest * http,
     debug(33, 3) ("clientBuildReplyHeader: OUTPUT:\n%s\n", hdr_out);
     memFree(MEM_4K_BUF, xbuf);
     memFree(MEM_4K_BUF, ybuf);
-    /* temporary kludge to test headers, remove it @?@ @?@ */
-    {
-       extern void httpHeaderTestParser(const char *hstr);
-       httpHeaderTestParser(hdr_out);
-    }
-    /* end of kludge */
     return len;
 }
 
@@ -1605,13 +1599,6 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
     *(*headers_p + header_sz) = '\0';
 
     debug(33, 5) ("parseHttpRequest: Request Header is\n%s\n", *headers_p);
-    /* temporary kludge to test headers, remove it @?@ @?@ */
-    {
-       extern void httpHeaderTestParser(const char *hstr);
-       httpHeaderTestParser(*headers_p);
-    }
-    /* end of kludge */
-
     /* Assign http->uri */
     if ((t = strchr(url, '\n')))       /* remove NL */
        *t = '\0';