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

@ -462,10 +462,6 @@ txCompileObserver::startLoad(nsIURI* aUri, txStylesheetCompiler* aCompiler,
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
if (httpChannel) {
httpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
NS_LITERAL_CSTRING("*/*"),
false);
nsCOMPtr<nsIURI> referrerURI;
aReferrerPrincipal->GetURI(getter_AddRefs(referrerURI));
if (referrerURI) {