kerneltime commented on code in PR #5162:
URL: https://github.com/apache/ozone/pull/5162#discussion_r1366158209
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java:
##########
@@ -529,7 +559,7 @@ public Response head(
}
ResponseBuilder response = Response.ok().status(HttpStatus.SC_OK)
- .header("ETag", "" + key.getModificationTime())
+ .header(ETAG, "" + wrapInQuotes(key.getMetadata().get(ETAG)))
Review Comment:
We should also remove the header to avoid it showing up in the customer
headers later down the code or filter out the headers that should not be part
of custom headers.
--
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]