We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When migrating from Spring Boot 3.3.5 to 3.3.6 (or 3.4.0), it seems that the Content-Length is filtered on every HEAD requests.
Content-Length
HEAD
Here is a minimal example that demonstrates the issue:
@RestController public class AnyController { @RequestMapping(method = RequestMethod.HEAD) public ResponseEntity<Void> getAnyHeader() { return ResponseEntity.ok().headers(httpHeaders -> httpHeaders.setContentLength(50L)).build(); } }
I found a related issue reported on Stack Overflow: Content-Length Header is Removed from HEAD Response. Thanks for your help!
The text was updated successfully, but these errors were encountered:
Duplicates #43272.
Sorry, something went wrong.
No branches or pull requests
Hi,
When migrating from Spring Boot 3.3.5 to 3.3.6 (or 3.4.0), it seems that the
Content-Length
is filtered on everyHEAD
requests.Here is a minimal example that demonstrates the issue:
I found a related issue reported on Stack Overflow: Content-Length Header is Removed from HEAD Response.
Thanks for your help!
The text was updated successfully, but these errors were encountered: