Skip to content

Commit

Permalink
WebClient redirect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkec committed Dec 7, 2023
1 parent 3138c20 commit e5ee3c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void close() throws IOException {
*/
void idle() {
if (idlingThread != null) {
throw new IllegalStateException("Already in idle mode!");
return;
}
idlingThread = executor.get().submit(this::handle);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ WebClientServiceResponse doProceed(ClientConnection connection,
throw new IllegalStateException("Output stream was not closed in handler");
}

reader = cos.reader;
connection = cos.connection;

Status responseStatus;
try {
responseStatus = Http1StatusParser.readStatus(reader, http1Client.protocolConfig().maxStatusLineLength());
Expand Down

0 comments on commit e5ee3c6

Please sign in to comment.