robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.6k stars 1.31k forks source link

code issue in file HTTPConnection.m #132

Open mikelilei opened 9 years ago

mikelilei commented 9 years ago

Please check the HTTPConnection with the following code:

if (requestContentLength > 0) { // Start reading the request body if (requestContentLength == -1) {

if requestContentLength > 0 and then requestContentLength will never equal to -1, this should be an issue and should cause the chunked transfer problems, thanks.