소스 검색

Fixed segfault unsupported encodings

diadistis 11 년 전
부모
커밋
9b1667fe81
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/HttpResponseCommand.cc

+ 4 - 3
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;
 }