Browse Source
Prior to this commit, the `ResourceHttpRequestHandler` would detect invalid range requests and reply with a 416 response status and the relevant range header. Because this was triggering an error dispatch, the error handling would collect error metadata and produce an error response with the original content-type. This would most likely fail because the content-type is most likely a file-related media type which cannot be used for error responses. This commit resets the response content type in these cases and let the error handling pick the most sensible media type for the error response. Fixes gh- 34490pull/35405/head
2 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue