зеркало из https://github.com/mozilla/gecko-dev.git
Bug 398066 - "Image requests should include image/* in Accept header" [p=lholst@students.cs.uu.nl (Laurens Holst) r=biesi sr=stuart a1.9=damons]
This commit is contained in:
Родитель
89fe19aa08
Коммит
9d8e2396ac
|
@ -215,7 +215,7 @@ static nsresult NewImageChannel(nsIChannel **aResult,
|
|||
newHttpChannel = do_QueryInterface(*aResult);
|
||||
if (newHttpChannel) {
|
||||
newHttpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
|
||||
NS_LITERAL_CSTRING("image/png,*/*;q=0.5"),
|
||||
NS_LITERAL_CSTRING("image/png,image/*;q=0.8,*/*;q=0.5"),
|
||||
PR_FALSE);
|
||||
|
||||
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal = do_QueryInterface(newHttpChannel);
|
||||
|
|
Загрузка…
Ссылка в новой задаче