diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-17 14:20:16 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-17 14:20:16 +0200 |
commit | e0f49e146d2fc54d9f69d698089dc7b903b96ee0 (patch) | |
tree | 562f6b000cc60bd6e69dc930403402bdc73594be /src/web.cc | |
parent | 725c6dab378eab3716d41606ee23cacf17c39d8f (diff) | |
parent | dfed92dee228ad426baeb89dd8896ce4db80278a (diff) |
merge
Diffstat (limited to 'src/web.cc')
-rw-r--r-- | src/web.cc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -92,12 +92,12 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, } else { /* A non-RootUrl. At this moment we only handle image-children */ - if (!dStrncasecmp(Type, "image/", 6)) + if (!dStrncasecmp(Type, "image/", 6)) { dw = (Widget*) a_Mime_set_viewer(Type, Web, Call, Data); - } - - if (!dw) { - MSG_HTTP("unhandled MIME type: \"%s\"\n", Type); + } else { + MSG_HTTP("'%s' cannot be displayed as image; has media type '%s'\n", + URL_STR(Web->url), Type); + } } return (dw ? 1 : -1); } |