зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261318 - make sure brotli context is created in onstoprequest r=bagder
This commit is contained in:
Родитель
a2db24fb14
Коммит
3ad17e9c6e
|
@ -144,7 +144,7 @@ nsHTTPCompressConv::OnStopRequest(nsIRequest* request, nsISupports *aContext,
|
|||
if (fpChannel && !isPending) {
|
||||
fpChannel->ForcePending(true);
|
||||
}
|
||||
if (mBrotli->mTotalOut == 0 && !BrotliStateIsStreamEnd(&mBrotli->mState)) {
|
||||
if (mBrotli && (mBrotli->mTotalOut == 0) && !BrotliStateIsStreamEnd(&mBrotli->mState)) {
|
||||
status = NS_ERROR_INVALID_CONTENT_ENCODING;
|
||||
}
|
||||
LOG(("nsHttpCompresssConv %p onstop brotlihandler rv %x\n", this, status));
|
||||
|
|
Загрузка…
Ссылка в новой задаче