Przeglądaj źródła

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 lat temu
rodzic
commit
fba593a602
1 zmienionych plików z 1 dodań i 1 usunięć
  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;