mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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:
parent
20e11f0ffa
commit
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user