Tue Nov 2 00:27:25 CET 1999 Modified Files in squid/src ftp.c The code supporting HEAD on ftp:// URL's had a small syntax error which Sun Workshop compiler 5.0 complains on. GCC however happily accepted this code and I can't find any option which makes GCC emit a warning. Sat Oct 23 14:45:38 CEST 1999 Added support for HEAD method on ftp://.. URLs. ----------------------------------------------------------------- Index: squid/src/ftp.c diff -u squid/src/ftp.c:1.1.1.39 squid/src/ftp.c:1.1.1.39.2.2 --- squid/src/ftp.c:1.1.1.39 Sat Oct 30 13:25:03 1999 +++ squid/src/ftp.c Tue Nov 2 00:27:24 1999 @@ -1628,6 +1628,14 @@ int fd; struct sockaddr_in addr; socklen_t addr_len; + if (ftpState->request->method == METHOD_HEAD) { + /* Terminate here for HEAD requests */ + ftpAppendSuccessHeader(ftpState); + storeTimestampsSet(ftpState->entry); + fwdComplete(ftpState->fwd); + ftpSendQuit(ftpState); + return; + } if (ftpState->data.fd >= 0) { if (!ftpState->flags.datachannel_hack) { /* We are already connected, reuse this connection. */