diff options
| author | diadistis <bsotirid@gmail.com> | 2014-07-20 18:06:09 +0300 |
|---|---|---|
| committer | diadistis <bsotirid@gmail.com> | 2014-07-20 18:06:09 +0300 |
| commit | 9b1667fe81aadcac8a9e5ba66f62933040cafb50 (patch) | |
| tree | e1619c3169b057af94e04f487e6e33c435c7821d /src/HttpResponseCommand.cc | |
| parent | 93ceb5f448c5d1710a3f68313900c8dbf971f922 (diff) | |
Fixed segfault unsupported encodings
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 9e9477ab..0e2204ac 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -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; } |
