aboutsummaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-03-16 19:10:40 +0000
committercorvid <devnull@localhost>2014-03-16 19:10:40 +0000
commit0443258392f6bce6bc27c74834c10b158dc4954e (patch)
treeba6713c2063412ec35f781fab417c6b22e3f5afd /src/IO/http.c
parent81505aea4a1eb53d2d5964a9d2a25a66f74db391 (diff)
rm Accept-Charset
As https://developer.mozilla.org/en-US/docs/HTTP/Content_negotiation puts it, "Considering that : * UTF-8 is now well-supported by all relevant user-agents, * the presence of the header increases theĀ  configuration-based entropy exposed, * the presence of the header increases the data transmitted for each request * almost no sites are using the value of this header for choosing content during the negotiation, browsers started to stop sending this header in each request, starting with Internet Explorer 8, Safari 5, Opera 11 and Firefox 10. In the absence of Accept-Charset:, servers can simply assume that UTF-8 and the most common characters sets are understood by the client" Chrome still had it, but then took it out in 2013: http://code.google.com/p/chromium/issues/detail?id=112804
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 5a347c05..6747aa81 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -297,7 +297,6 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester,
"Host: %s\r\n"
"User-Agent: %s\r\n"
"Accept: text/*,image/*,*/*;q=0.2\r\n"
- "Accept-Charset: utf-8,*;q=0.8\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"%s" /* language */
"%s" /* auth */
@@ -322,7 +321,6 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester,
"User-Agent: %s\r\n"
"%s"
"Accept: text/*,image/*,*/*;q=0.2\r\n"
- "Accept-Charset: utf-8,*;q=0.8\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"%s" /* language */
"%s" /* auth */