Index: src/OFHTTPClient.m ================================================================== --- src/OFHTTPClient.m +++ src/OFHTTPClient.m @@ -517,10 +517,23 @@ didEncounterException: e forRequest: _request]; return false; } } + +- (size_t)socket: (OFTCPSocket *)socket + didWriteBody: (const void **)body + length: (size_t)length + context: (id)context + exception: (id)exception +{ + [socket asyncReadLineWithTarget: self + selector: @selector(socket:didReadLine:context: + exception:) + context: nil]; + return 0; +} - (size_t)socket: (OFTCPSocket *)socket didWriteRequest: (const void **)request length: (size_t)length context: (id)context @@ -557,23 +570,10 @@ length: 0 context: nil exception: nil]; } -- (size_t)socket: (OFTCPSocket *)socket - didWriteBody: (const void **)body - length: (size_t)length - context: (id)context - exception: (id)exception -{ - [socket asyncReadLineWithTarget: self - selector: @selector(socket:didReadLine:context: - exception:) - context: nil]; - return 0; -} - - (void)handleSocket: (OFTCPSocket *)socket { /* * As a work around for a bug with split packets in lighttpd when using * HTTPS, we construct the complete request in a buffer string and then