diff -pru dillo/src/html.c dillo.new/src/html.c
--- dillo/src/html.c    Fri Dec 22 23:45:10 2000
+++ dillo.new/src/html.c        Sat Dec 23 04:17:18 2000
@@ -72,6 +72,13 @@ Dw *a_Html_text(const char *Type, void *
    DilloWeb *web = P;
    DilloHtml *html = Html_new(web->bw);
 
+   if (!(web->flags & WEB_RootUrl)) {
+      /* Asked for non-RootUrl (image or other mime), and got an 
+        text/html MIME type... just bail out and save our skin. */
+      *Call = a_Cache_null_client;
+      return html->dw;
+   }
+
    *Data = (void *) html;
    *Call = (CA_Callback_t) Html_callback;
 
