John Line (as web server manager) wrote:

> It is not (or should not be) something as simple as "server didn't
> send content type", as Squid normally logs "unknown" in that case
> (judging by other log entries).

It is. If the server sends a blank content-type then a blank field is
logged..

> Anyone else seen this? Anyone worked out why it happens or how to fix it?

diff -u -w -r1.1.1.5 store_log.c
--- store_log.c 1998/07/23 20:38:02     1.1.1.5
+++ store_log.c 1999/02/27 12:48:57
@@ -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],

---
Henrik Nordstrom
Spare time Squid hacker

Reply via email to