зеркало из https://github.com/mozilla/pjs.git
fix for bug 83611 - download dialog pops when text/html offered instead of page load, r=gagan, sr=darin, a=chofmann.
This commit is contained in:
Родитель
ccdd324ed9
Коммит
4ac1b51893
|
@ -446,6 +446,10 @@ nsHttpResponseHead::ParseContentType(char *type)
|
|||
;
|
||||
*++p = 0; // overwrite first char after the media type
|
||||
|
||||
// force the content-type to lowercase
|
||||
while (--p >= type)
|
||||
*p = nsCRT::ToLower(*p);
|
||||
|
||||
mContentType = type;
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче