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:
reed@reedloden.com 2008-01-29 20:27:11 -08:00
parent 89fe19aa08
commit 9d8e2396ac

View File

@ -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);