From: rousskov <> Date: Thu, 2 Apr 1998 12:35:21 +0000 (+0000) Subject: - Removed calls to httpHeaderTestParser() X-Git-Tag: SQUID_3_0_PRE1~3649 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be9a7a19d549e67944443e26e4465030745cf207;p=thirdparty%2Fsquid.git - Removed calls to httpHeaderTestParser() - Removed lrand48() from httpHeaderTestParser() --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index ed56a5d590..e28585a364 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -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'); diff --git a/src/client_side.cc b/src/client_side.cc index 4ecbd0e7ee..0ddb6b643e 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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';