зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
20e11f0ffa
Коммит
1e5de0b577
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче