Fixed segfault unsupported encodings

This commit is contained in:
diadistis 2014-07-20 18:06:09 +03:00
parent 93ceb5f448
commit 9b1667fe81

View File

@ -115,10 +115,11 @@ std::unique_ptr<StreamFilter> getContentEncodingStreamFilter
"process is skipped and the downloaded content will be "
"still encoded.",
httpResponse->getContentEncoding().c_str()));
} else {
filter->init();
filter->installDelegate(std::move(delegate));
return filter;
}
filter->init();
filter->installDelegate(std::move(delegate));
return filter;
}
return delegate;
}