зеркало из https://github.com/mozilla/pjs.git
Bug 231357 Remove universal image mimetypes from accept header r=darin sr=brendan
This commit is contained in:
Родитель
c05734181d
Коммит
926361b6b7
|
@ -197,7 +197,7 @@ static nsresult NewImageChannel(nsIChannel **aResult,
|
||||||
newHttpChannel = do_QueryInterface(*aResult);
|
newHttpChannel = do_QueryInterface(*aResult);
|
||||||
if (newHttpChannel) {
|
if (newHttpChannel) {
|
||||||
newHttpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
|
newHttpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
|
||||||
NS_LITERAL_CSTRING("image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1"),
|
NS_LITERAL_CSTRING("image/png,*/*;q=0.5"),
|
||||||
PR_FALSE);
|
PR_FALSE);
|
||||||
|
|
||||||
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal = do_QueryInterface(newHttpChannel);
|
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal = do_QueryInterface(newHttpChannel);
|
||||||
|
|
|
@ -509,8 +509,7 @@ pref("network.http.connect.timeout", 30); // in seconds
|
||||||
pref("network.http.request.timeout", 120); // in seconds
|
pref("network.http.request.timeout", 120); // in seconds
|
||||||
|
|
||||||
// Headers
|
// Headers
|
||||||
pref("network.http.accept.default", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1");
|
pref("network.http.accept.default", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");
|
||||||
|
|
||||||
pref("network.http.sendRefererHeader", 2); // 0=don't send any, 1=send only on clicks, 2=send on image requests as well
|
pref("network.http.sendRefererHeader", 2); // 0=don't send any, 1=send only on clicks, 2=send on image requests as well
|
||||||
|
|
||||||
// Controls whether we send HTTPS referres to other HTTPS sites.
|
// Controls whether we send HTTPS referres to other HTTPS sites.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче