From b00b0763776f9ae47b1843d025ecb50c4b997bca Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 7 Mar 2019 13:05:13 +0100 Subject: 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. --- layout/style/Loader.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'layout/style') 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 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 referrerURI = aLoadData->GetReferrerURI(); if (referrerURI) httpChannel->SetReferrerWithPolicy(referrerURI, -- cgit v1.2.3