RFR: 8349670: HttpServer: sending interim responses fails after JDK-7026262 [v8]
Josiah Noel
duke at openjdk.org
Wed Oct 8 19:14:45 UTC 2025
On Wed, 8 Oct 2025 18:47:18 GMT, robert engels <duke at 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
More information about the net-dev
mailing list