--------------------- PatchSet 11335 Date: 2007/03/14 14:08:26 Author: hno Branch: HEAD Tag: (none) Log: Fix forwarding of non-GET method when collapsed_forwarding is enabled a silly C pitfall made Squid forward all requests as GET requests when collapsed_forwarding is enabled. Members: src/client_side.c:1.714->1.715 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.714 retrieving revision 1.715 diff -u -r1.714 -r1.715 --- squid/src/client_side.c 12 Mar 2007 21:56:55 -0000 1.714 +++ squid/src/client_side.c 14 Mar 2007 14:08:26 -0000 1.715 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.714 2007/03/12 21:56:55 hno Exp $ + * $Id: client_side.c,v 1.715 2007/03/14 14:08:26 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -3355,7 +3355,7 @@ return; } http->entry = clientCreateStoreEntry(http, r->method, r->flags); - if (Config.onoff.collapsed_forwarding && r->flags.cachable && !r->flags.need_validation && (r->method = METHOD_GET || r->method == METHOD_HEAD)) { + if (Config.onoff.collapsed_forwarding && r->flags.cachable && !r->flags.need_validation && (r->method == METHOD_GET || r->method == METHOD_HEAD)) { http->entry->mem_obj->refresh_timestamp = squid_curtime; /* Set the vary object state */ safe_free(http->entry->mem_obj->vary_headers);