Re: Cannot POST on squid-1.1.beta25

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 03 Dec 96 13:36:13 -0800

carmine@true.net writes:

>
> We changed from squid-1.1beta23--->squid-1.1beta25
>and POST METHODS does not work MOST of the time.
>
> I can't track any errors, since it does not work
>at least 8/10 times but the other 2/10 it works.
>Switching to squid-1.1.beta23 fix all.
>
> All I get in access.log is TCP_MISS for all this
>POST queries.
>
> Any help?

Try this simple patch:

Index: http.c
===================================================================
RCS file: /surf1/CVS/squid/src/http.c,v
retrieving revision 1.122
retrieving revision 1.125
diff -w -u -r1.122 -r1.125
--- http.c 1996/12/01 00:18:47 1.122
+++ http.c 1996/12/03 20:26:53 1.125
@@ -618,7 +620,7 @@
     if (n >= max)
        return;
     debug(11, 5, "httpAppendRequestHeader: %s\n", line);
- strcat(hdr + (*sz), line);
+ strcpy(hdr + (*sz), line);
     strcat(hdr + (*sz), crlf);
     *sz = n;
 }

Duane W.
Received on Tue Dec 03 1996 - 13:44:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:49 MST