浏览代码

Typo in GCDWebServerGZipDecoder:open

I haven't tested or dug into this, as I just happened to spot it while looking through a colleagues code.

It looks like `inflateInit2` is called and then `deflateEnd` on error. I'm wondering if this is a copy and paste issue from `GCDWebServerGZipEncoder` and really it should be `inflateEnd` here instead?
Gavin MacLean 9 年之前
父节点
当前提交
fba593a602
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GCDWebServer/Core/GCDWebServerRequest.m

+ 1 - 1
GCDWebServer/Core/GCDWebServerRequest.m

@@ -94,7 +94,7 @@ NSString* const GCDWebServerRequestAttribute_RegexCaptures = @"GCDWebServerReque
     return NO;
   }
   if (![super open:error]) {
-    deflateEnd(&_stream);
+    inflateEnd(&_stream);
     return NO;
   }
   return YES;