summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/OFHTTPClient.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OFHTTPClient.m b/src/OFHTTPClient.m
index 6822572a..840a8a40 100644
--- a/src/OFHTTPClient.m
+++ b/src/OFHTTPClient.m
@@ -976,7 +976,7 @@ defaultShouldFollow(of_http_request_method_t method, int statusCode)
- (int)fileDescriptorForReading
{
if (_socket == nil)
- return INVALID_SOCKET;
+ return -1;
return _socket.fileDescriptorForReading;
}