Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
fba593a602
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;