I used ASIHTTPRequest
in my project,but in the file ASIDataCompressor.m
line 190
:
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
if (err) {
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
}
[compressor closeStream];
return NO;
}
it warning me this:
Any one know how to fix it? thx
(NSStreamStatus)NSStreamEventErrorOccurred
edit
Probably the correct way to handle this is to replace the NSStreamEventErrorOccurred
with NSStreamStatusError
. That's probably what the author of ASIHTTP intended.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With