зеркало из 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:
Родитель
c085a040b0
Коммит
cdb39d28e1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче