Bug 231357 Remove universal image mimetypes from accept header r=darin sr=brendan

This commit is contained in:
mconnor%myrealbox.com 2004-02-26 04:16:23 +00:00
Родитель c05734181d
Коммит 926361b6b7
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -197,7 +197,7 @@ static nsresult NewImageChannel(nsIChannel **aResult,
newHttpChannel = do_QueryInterface(*aResult);
if (newHttpChannel) {
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);
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
// 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
// Controls whether we send HTTPS referres to other HTTPS sites.