Affects: spring-web, all versions from at least 2020 till now
Expected behavior:
When a Mono returned from ServerHttpResponse.writeWith(Publisher) is completed, the response is committed.
Actual behavior:
For HTTP HEAD requests, response object is wrapped into HttpHeadResponseDecorator that does not call either doCommit() or setComplete() in writeWith().
I see it counter-intuitive that the response may be not committed yet after writeWith().
Comment From: snicoll
@frost13it this is pretty low-level so I am not sure what you mean by counter-intuitive. Can we take a step back. Have you found an issue for HEAD requests? If so, can you please share a small sample that demonstrates it? You can do to by attaching a zip to this issue or pushing the code to a GitHub repository.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.