mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
89fe19aa08
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user