summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c
index b4eec2d06..7fb082f02 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -431,6 +431,14 @@ struct fetch * fetch_start(char *url, char *referer,
APPEND(fetch->headers, s);
}
+ if (option_accept_charset) {
+ char s[80];
+ snprintf(s, sizeof s, "Accept-Charset: %s, *;q=0.1",
+ option_accept_charset);
+ s[sizeof s - 1] = 0;
+ APPEND(fetch->headers, s);
+ }
+
/* And add any headers specified by the caller */
for (i = 0; headers[i]; i++) {
if (strncasecmp(headers[i], "If-Modified-Since:", 18) == 0) {