Fix bug with ASIDataCompressor / ASIDataDecompressor
Thanks to Thomas Rasch for the fix! Closes gh-113 [#69 state:resolved]
Showing
3 changed files
with
2 additions
and
3 deletions
@@ -96,6 +96,7 @@ | @@ -96,6 +96,7 @@ | ||
96 | 96 | ||
97 | if (status == Z_STREAM_END) { | 97 | if (status == Z_STREAM_END) { |
98 | theError = [self closeStream]; | 98 | theError = [self closeStream]; |
99 | + break; | ||
99 | } else if (status != Z_OK) { | 100 | } else if (status != Z_OK) { |
100 | if (err) { | 101 | if (err) { |
101 | *err = [[self class] deflateErrorWithCode:status]; | 102 | *err = [[self class] deflateErrorWithCode:status]; |
@@ -93,9 +93,7 @@ | @@ -93,9 +93,7 @@ | ||
93 | 93 | ||
94 | if (status == Z_STREAM_END) { | 94 | if (status == Z_STREAM_END) { |
95 | theError = [self closeStream]; | 95 | theError = [self closeStream]; |
96 | - if (theError) { | ||
97 | break; | 96 | break; |
98 | - } | ||
99 | } else if (status != Z_OK) { | 97 | } else if (status != Z_OK) { |
100 | if (err) { | 98 | if (err) { |
101 | *err = [[self class] inflateErrorWithCode:status]; | 99 | *err = [[self class] inflateErrorWithCode:status]; |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | #import "ASIDataCompressor.h" | 24 | #import "ASIDataCompressor.h" |
25 | 25 | ||
26 | // Automatically set on build | 26 | // Automatically set on build |
27 | -NSString *ASIHTTPRequestVersion = @"v1.8-15 2010-12-04"; | 27 | +NSString *ASIHTTPRequestVersion = @"v1.8-17 2010-12-04"; |
28 | 28 | ||
29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
30 | 30 |
-
Please register or login to post a comment