Bug #9513

Updated by Tom Clegg almost 5 years ago

The code that checks the Content-Length request header for PUT requests, inexplicably, copies the request header into the response headers if there was an error parsing it as an int. It's unclear whether the intent was truly to copy the header when parsing _failed_, or whether @err!=nil@ was a typo and the intent was to copy the header when parsing _succeeded_, but neither makes any sense: invalid headers are invalid, and there's no reason to expect the PUT response body to be the same size as the request body.

Back