Squid-2.2.DEVEL3: Blank content types logged in store.log If the origin server sent a blank content type, then store.log logged a blank field, making it hard to parse. This patch logs "unknown" as is logged when no content type is provided at all. Index: squid/src/store_log.c diff -u squid/src/store_log.c:1.1.1.5 squid/src/store_log.c:1.1.1.5.42.1 --- squid/src/store_log.c:1.1.1.5 Thu Jul 23 22:38:02 1998 +++ squid/src/store_log.c Sat Feb 27 19:10:52 1999 @@ -71,7 +71,7 @@ (int) reply->date, (int) reply->last_modified, (int) reply->expires, - strBuf(reply->content_type) ? strBuf(reply->content_type) : "unknown", + strLen(reply->content_type) ? strBuf(reply->content_type) : "unknown", reply->content_length, (int) (mem->inmem_hi - mem->reply->hdr_sz), RequestMethodStr[mem->method],