robbiehanson / CocoaHTTPServer

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

Range request hard codes status #110

Open natevw opened 10 years ago

natevw commented 10 years ago

In -[HTTPConnection newUniRangeResponse] and -[HTTPConnection newMultiRangeResponse] the status code is always hardcoded to 206, instead of using the instance's status like the non-range path.

This causes trouble when a subclass tries to return e.g. a 304 Not Modified (or I suppose a 4xx or 5xx), but the client gets a 206 anyway…