--------------------- PatchSet 1496 Date: 2001/02/06 10:10:36 Author: adri Branch: modio Tag: (none) Log: When doing a HEAD request, we can actually do a GET in the store and use that as the basis for the HEAD return. Fudge the request_t to reflect that we're doing a GET, then fudge it back to HEAD. Members: src/client_side.c:1.2.2.17->1.2.2.18 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.2.2.17 retrieving revision 1.2.2.18 diff -u -r1.2.2.17 -r1.2.2.18 --- squid/src/client_side.c 6 Feb 2001 10:08:04 -0000 1.2.2.17 +++ squid/src/client_side.c 6 Feb 2001 10:10:36 -0000 1.2.2.18 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.2.2.17 2001/02/06 10:08:04 adri Exp $ + * $Id: client_side.c,v 1.2.2.18 2001/02/06 10:10:36 adri Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2063,9 +2063,14 @@ clientHttpRequest *http = data; if (http->request->method == METHOD_HEAD && e == NULL) { - /* Start off the GET lookup */ + /* + * Start off the GET lookup, and change the request to be a + * HEAD afterwards + */ + http->request->method = METHOD_GET; storeDoubleCheckRequest(http->request, http->uri, METHOD_GET); storeLookup(http->request, clientLookupHeadDone, http); + http->request->method = METHOD_HEAD; } else { /* We have to continue with our result, NULL or not */ http->log_type = clientProcessRequest2(http, e);