diff --git a/src/web.cc b/src/web.cc index 2e90161..8dd1e46 100644 --- a/src/web.cc +++ b/src/web.cc @@ -103,16 +103,16 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, return 1; } - /* A non-RootUrl. At this moment we only handle image-children */ - if (!dStrnAsciiCasecmp(Type, "image/", 6)) { - auto dw = (Widget*) viewer(Type, Web, Call, Data); - return (dw ? 1 : -1); - - } - MSG_HTTP("'%s' cannot be displayed as image; has media type '%s'\n", - URL_STR(Web->url), Type); - return -1; + /* A non-RootUrl. At this moment we only handle image-children */ + if (!dStrnAsciiCasecmp(Type, "image/", 6)) { + auto dw = (Widget*) viewer(Type, Web, Call, Data); + return (dw ? 1 : -1); + } + + MSG_HTTP("'%s' cannot be displayed as image; has media type '%s'\n", + URL_STR(Web->url), Type); + return -1; }