Open natevw opened 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.
-[HTTPConnection newUniRangeResponse]
-[HTTPConnection newMultiRangeResponse]
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…
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…