зеркало из https://github.com/mozilla/pjs.git
Fix for bug 35956; turn off gzip content encodng when downloading via http; r=gagan
This commit is contained in:
Родитель
9613da0b84
Коммит
579eb31218
|
@ -131,6 +131,13 @@ nsStreamTransfer::SelectFileAndTransferLocation( nsIChannel *aChannel,
|
|||
NS_SUCCEEDED( outputFile->IsValid( &isValid ) )
|
||||
&&
|
||||
isValid ) {
|
||||
// Try to get HTTP channel.
|
||||
nsCOMPtr<nsIHTTPChannel> httpChannel = do_QueryInterface( aChannel );
|
||||
if ( httpChannel ) {
|
||||
// Turn off content encoding conversions.
|
||||
httpChannel->SetApplyConversion( PR_FALSE );
|
||||
}
|
||||
|
||||
// Construct stream transfer operation to be given to dialog.
|
||||
nsStreamXferOp *p= new nsStreamXferOp( aChannel, outputFile );
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче