]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't strip out anchors from URL's. Doing so violates the HTTP specification
authorhno <>
Sun, 18 Nov 2001 17:20:28 +0000 (17:20 +0000)
committerhno <>
Sun, 18 Nov 2001 17:20:28 +0000 (17:20 +0000)
on URL transformation and semantical transparency.

src/client_side.cc

index 516ed7b789dab839942a8a6a1d44dfe2663aa28a..6559ff7de4f26e01de724110b19a70d50235572f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.558 2001/11/15 00:52:42 hno Exp $
+ * $Id: client_side.cc,v 1.559 2001/11/18 10:20:28 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2552,8 +2552,10 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
     dlinkAdd(http, &http->active, &ClientActiveRequests);
 
     debug(33, 5) ("parseHttpRequest: Request Header is\n%s\n", (*prefix_p) + *req_line_sz_p);
+#if THIS_VIOLATES_HTTP_SPECS_ON_URL_TRANSFORMATION
     if ((t = strchr(url, '#')))        /* remove HTML anchors */
        *t = '\0';
+#endif
 
     /* handle internal objects */
     if (internalCheck(url)) {