Bug 223390: "Save as" and "Save Link as..." save gzipped content when server uses gzip transfer-encoding. porting fix from the suite. Patch by bz. Thanks Jesse!

This commit is contained in:
chanial%noos.fr 2005-03-23 21:37:20 +00:00
Родитель c085a040b0
Коммит cdb39d28e1
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -230,8 +230,8 @@ function foundHeaderInfo(aSniffer, aData, aSkipPrompt)
getService(Components.interfaces.nsIExternalHelperAppService);
var url = aSniffer.uri.QueryInterface(Components.interfaces.nsIURL);
var urlExt = url.fileExtension;
if (helperAppService.applyDecodingForType(contentType) &&
(!urlExt || helperAppService.applyDecodingForExtension(urlExt))) {
if (helperAppService.applyDecodingForExtension(urlExt,
contentEncodingType)) {
shouldDecode = true;
}
}