]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add fake request headers for WHOIS requests
authorwessels <>
Sat, 14 Feb 1998 03:37:10 +0000 (03:37 +0000)
committerwessels <>
Sat, 14 Feb 1998 03:37:10 +0000 (03:37 +0000)
src/asn.cc

index 0362f68321941e9770b11d8fbcea84fbc5fae345..5ccd41c2232d88e5ca2e52ffdb8dc2353bbc3350 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: asn.cc,v 1.20 1998/02/10 22:17:52 wessels Exp $
+ * $Id: asn.cc,v 1.21 1998/02/13 20:37:10 wessels Exp $
  *
  * DEBUG: section 53    AS Number handling
  * AUTHOR: Duane Wessels, Kostas Anagnostakis
@@ -186,6 +186,8 @@ asnCacheStart(int as)
     k = storeKeyPublic(asres, METHOD_GET);
     asState->as_number = as;
     asState->request = urlParse(METHOD_GET, asres);
+    asState->request->headers = xstrdup("\r\n");
+    asState->request->headers_sz = strlen(asState->request->headers);
     if ((e = storeGet(k)) == NULL) {
        e = storeCreateEntry(asres, asres, 0, METHOD_GET);
        storeClientListAdd(e, asState);