aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/IO/http.c5
-rw-r--r--src/html.cc1
-rw-r--r--src/web.hh3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 079f0a3c..0a235f57 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -270,8 +270,9 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester,
*proxy_auth = dStr_new("");
/* BUG: dillo doesn't actually understand application/xml yet */
- const char *accept_hdr_value = web_flags & WEB_Image ?
- "image/png,image/*;q=0.8,*/*;q=0.5" :
+ const char *accept_hdr_value =
+ web_flags & WEB_Image ? "image/png,image/*;q=0.8,*/*;q=0.5" :
+ web_flags & WEB_Stylesheet ? "text/css,*/*;q=0.1" :
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
if (use_proxy) {
diff --git a/src/html.cc b/src/html.cc
index 53eadafe..b6d3e285 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3257,6 +3257,7 @@ void a_Html_load_stylesheet(DilloHtml *html, DilloUrl *url)
/* Fill a Web structure for the cache query */
int ClientKey;
DilloWeb *Web = a_Web_new(html->bw, url, html->page_url);
+ Web->flags |= WEB_Stylesheet;
if ((ClientKey = a_Capi_open_url(Web, Html_css_load_callback, NULL))) {
++html->bw->NumPendingStyleSheets;
a_Bw_add_client(html->bw, ClientKey, 0);
diff --git a/src/web.hh b/src/web.hh
index 2c22edb5..2e8fbf69 100644
--- a/src/web.hh
+++ b/src/web.hh
@@ -15,7 +15,8 @@ extern "C" {
*/
#define WEB_RootUrl 1
#define WEB_Image 2
-#define WEB_Download 4 /* Half implemented... */
+#define WEB_Stylesheet 4
+#define WEB_Download 8 /* Half implemented... */
typedef struct _DilloWeb DilloWeb;