diff options
author | jcid <devnull@localhost> | 2008-09-09 00:34:44 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-09 00:34:44 +0200 |
commit | 10cefdd24ef13e42eef90059b4adbe65b1ade588 (patch) | |
tree | eafe2bf776e043c139a1fd8bef7c4809f1c0d189 | |
parent | 5205356fef9cf35d3ed759c9f6960ebd34d772f9 (diff) |
- Added a console message for non viewable content.
-rw-r--r-- | src/cache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cache.c b/src/cache.c index 4786a627..36764b24 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1039,12 +1039,13 @@ static void Cache_process_queue(CacheEntry_t *entry) if (TypeMismatch) { AbortEntry = TRUE; } else { - st = a_Web_dispatch_by_type(Cache_current_content_type(entry), - ClientWeb, &Client->Callback, - &Client->CbData); + const char *content_type = Cache_current_content_type(entry); + st = a_Web_dispatch_by_type(content_type, ClientWeb, + &Client->Callback, &Client->CbData); if (st == -1) { /* MIME type is not viewable */ if (ClientWeb->flags & WEB_RootUrl) { + MSG("Content-Type '%s' not viewable.\n", content_type); /* prepare a download offer... */ AbortEntry = OfferDownload = TRUE; } else { |