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.
This commit is contained in:
wolfbeast 2019-03-07 13:05:13 +01:00 committed by Roy Tam
commit 9bcb7ab2a5
3 changed files with 0 additions and 18 deletions

View file

@ -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,