karelia / CurlHandle

Cocoa Class wrapping libcurl
54 stars 21 forks source link

Made necessary modification for handling a server response with a header... #13

Closed pellet closed 11 years ago

pellet commented 11 years ago

... without a body(such as with a conditional-get)

The NSURLProtocol was giving an internal error on such a request since it would call the didFinish delegate before calling didReceiveResponse.

mikeabdullah commented 11 years ago

I think this introduces a new flaw: if the header arrives in more than one "chunk", they will be reported to the caller separately. Or have I missed something?

mikeabdullah commented 11 years ago

OK, thanks for spotting this issue, I've implemented my own fix for it on the 3.x branch.