瀏覽代碼

Merge branch 'diadistis-master'

Tatsuhiro Tsujikawa 11 年之前
父節點
當前提交
da2cc9d3a9
共有 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;
 }