On Tue, 23 Sep 2025 14:50:23 GMT, Josiah Noel <[email protected]> wrote:
>> Following the guideline of the last comment on >> [JDK-8349670](https://bugs.openjdk.org/browse/JDK-8349670?focusedId=14794649&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14794649), >> resolves the issue where sending a 1xx status code would close the input >> stream, preventing the server from reading the body. >> >> - When a 1xx status code is sent by `sendResponseHeaders`, the input/output >> streams will not be closed prematurely. >> - sentHeaders will not be set to true when sending 1xx status codes > > Josiah Noel has updated the pull request incrementally with one additional > commit since the last revision: > > remove upgrade > we should include as part of this fix, some symbolic constants to represent > the special (and counter-intuitive) length values of 0 and -1 for > sendResponseHeaders I mean I like this too and would appreciate that as well, but it seems a bit unrelated to the current change. > This method must be called prior to calling {@link #getResponseBody()}. Hm? I do this all the time though. ------------- PR Comment: https://git.openjdk.org/jdk/pull/27069#issuecomment-3324700536
