On Wed, 8 Oct 2025 18:47:18 GMT, robert engels <d...@openjdk.org> wrote:
> There is another issue with using sendResponseHeaders() for the interim > responses. A filter could add response headers. when you call the > sendResponseHeaders() it sends all of the headers, meaning you would send > headers at this time which aren't valid. You would also send them again when > you send the final response. Is this not allowed? Don't see anywhere it says that you cannot send headers for a 1xx code. > The server could easily be changed to never send the headers with a 1xx > response. See, that doesn't fly as you need to be able to send headers in cases like 101. ------------- PR Comment: https://git.openjdk.org/jdk/pull/27069#issuecomment-3382870818