Actions
Bug #9513
closed[Keep] keepproxy should not set content-length to -1 when responding 411 Length Required
Start date:
06/29/2016
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Story points:
0.5
Description
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.
Updated by Tom Clegg over 8 years ago
- Category set to Keep
- Assigned To set to Tom Clegg
9513-keepproxy-content-length @ 76d6d56
Updated by Tom Clegg over 8 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset arvados|commit:5f164d87da5241099d545b15ad537be69243a200.
Actions