rich7420 opened a new pull request, #12163: URL: https://github.com/apache/ozone/pull/12163
## What changes were proposed in this pull request? HeadObject ignored the `response-content-type` query parameter and always returned the stored Content-Type, although it applied the other `response-*` overrides and GetObject applied this one. The Content-Type override now sits in `addStoredObjectHeaders` next to the others, and GET and HEAD both call it. A malformed value such as `response-content-type=foo` now gets a 500 on HEAD, as it already does on GET, because Jersey can't parse it as a media type. That's tracked in HDDS-17925. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17920 ## How was this patch tested? Added tests in TestObjectHead. Fork CI (pending): https://github.com/rich7420/ozone/actions/runs/45574779009 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
