From: rousskov <> Date: Sun, 15 Mar 1998 11:25:27 +0000 (+0000) Subject: - Disabled testing of header parser. X-Git-Tag: SQUID_3_0_PRE1~3842 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a89b90bdd0138866394012331a26806a4358fe0;p=thirdparty%2Fsquid.git - Disabled testing of header parser. --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 61ddc5301d..8fea8ce578 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -1,5 +1,5 @@ /* - * $Id: HttpHeaderTools.cc,v 1.4 1998/03/12 00:28:53 rousskov Exp $ + * $Id: HttpHeaderTools.cc,v 1.5 1998/03/15 04:25:28 rousskov Exp $ * * DEBUG: section 66 HTTP Header Tools * AUTHOR: Alex Rousskov @@ -192,6 +192,8 @@ void httpHeaderTestParser(const char *hstr) Packer p; MemBuf mb; assert(hstr); + /* disabled for now */ + return; /* do not print too much, kludge */ if (bug_count > 50 && (lrand48() % bug_count) > 25L) return; diff --git a/src/client_side.cc b/src/client_side.cc index c7c3bdff9c..bd97e534da 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.225 1998/03/13 05:39:34 wessels Exp $ + * $Id: client_side.cc,v 1.226 1998/03/15 04:25:27 rousskov Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -882,12 +882,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; } @@ -1543,12 +1537,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 */