Skip to content

Commit fba593a

Browse files
authored
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?
1 parent 32bc721 commit fba593a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GCDWebServer/Core/GCDWebServerRequest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ - (BOOL)open:(NSError**)error {
9494
return NO;
9595
}
9696
if (![super open:error]) {
97-
deflateEnd(&_stream);
97+
inflateEnd(&_stream);
9898
return NO;
9999
}
100100
return YES;

0 commit comments

Comments
 (0)