summaryrefslogtreecommitdiffstats
path: root/layout/style/Loader.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-07 13:05:13 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-07 13:05:13 +0100
commitb00b0763776f9ae47b1843d025ecb50c4b997bca (patch)
tree936ab7615a5ea32f71bb3bab2d8269a28257f689 /layout/style/Loader.cpp
parentd38ddd92e159113aae22c4dc8f03dc2285e01b14 (diff)
downloadUXP-b00b0763776f9ae47b1843d025ecb50c4b997bca.tar
UXP-b00b0763776f9ae47b1843d025ecb50c4b997bca.tar.gz
UXP-b00b0763776f9ae47b1843d025ecb50c4b997bca.tar.lz
UXP-b00b0763776f9ae47b1843d025ecb50c4b997bca.tar.xz
UXP-b00b0763776f9ae47b1843d025ecb50c4b997bca.zip
Remove various hard-coded Accept: headers
Since we're now handling this in the network back-end, there's no need for this anymore. Tag #993.
Diffstat (limited to 'layout/style/Loader.cpp')
-rw-r--r--layout/style/Loader.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/layout/style/Loader.cpp b/layout/style/Loader.cpp
index a1a0fcfd9..0ce337e29 100644
--- a/layout/style/Loader.cpp
+++ b/layout/style/Loader.cpp
@@ -1677,10 +1677,6 @@ Loader::LoadSheet(SheetLoadData* aLoadData,
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
if (httpChannel) {
- // Send a minimal Accept header for text/css
- httpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
- NS_LITERAL_CSTRING("text/css,*/*;q=0.1"),
- false);
nsCOMPtr<nsIURI> referrerURI = aLoadData->GetReferrerURI();
if (referrerURI)
httpChannel->SetReferrerWithPolicy(referrerURI,