404 and stylesheets

"corvid" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <20111115103702.GA7798@local>
I noticed that remote stylesheets aren't applied on
http://docs.gimp.org/2.6/en/ because one of them returns
a 404 error and the pending stylesheets never reach 0.

One option would be to let them through as attached,
although I'm not sure about the wisdom of letting the
CSS code try to interpret a 404 page like that.

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
stylesheet_404.diff (text/plain, 716 B)
diff -r d35a120ef07b src/cache.c
--- a/src/cache.c	Sun Nov 13 19:28:59 2011 +0000
+++ b/src/cache.c	Tue Nov 15 10:24:37 2011 +0000
@@ -1168,8 +1168,11 @@
                AbortEntry = OfferDownload = TRUE;
             }
          } else {
-            /* For non root URLs, ignore redirections and 404 answers */
-            if (entry->Flags & CA_Redirect || entry->Flags & CA_NotFound)
+            /* For non root URLs, ignore all redirections, and 404 answers
+             * for images specifically.
+             */
+            if (entry->Flags & CA_Redirect ||
+                (entry->Flags & CA_NotFound && ClientWeb->flags & WEB_Image))
                Client->Callback = Cache_null_client;
          }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.