aboutsummaryrefslogtreecommitdiff
path: root/src/web.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-17 14:20:16 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-17 14:20:16 +0200
commite0f49e146d2fc54d9f69d698089dc7b903b96ee0 (patch)
tree562f6b000cc60bd6e69dc930403402bdc73594be /src/web.cc
parent725c6dab378eab3716d41606ee23cacf17c39d8f (diff)
parentdfed92dee228ad426baeb89dd8896ce4db80278a (diff)
merge
Diffstat (limited to 'src/web.cc')
-rw-r--r--src/web.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web.cc b/src/web.cc
index 1b5741ae..83700845 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -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);
}