diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m index 2b635ef..3031159 100644 --- a/src/ios/CDVFileTransfer.m +++ b/src/ios/CDVFileTransfer.m @@ -651,7 +651,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream) if ([response isKindOfClass:[NSHTTPURLResponse class]]) { NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*)response; - self.responseCode = [httpResponse statusCode]; + self.responseCode = (int)[httpResponse statusCode]; self.bytesExpected = [response expectedContentLength]; self.responseHeaders = [httpResponse allHeaderFields]; if ((self.direction == CDV_TRANSFER_DOWNLOAD) && (self.responseCode == 200) && (self.bytesExpected == NSURLResponseUnknownLength)) {