Fix for bug 35956; turn off gzip content encodng when downloading via http; r=gagan

This commit is contained in:
law%netscape.com 2000-06-26 21:36:28 +00:00
Родитель 9613da0b84
Коммит 579eb31218
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -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 );