Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit f320db0

Browse files
author
Yuri Nesterenko
committed
8257707: Fix incorrect format string in Http1HeaderParser
Backport-of: c6f93ec9f21f6db64ad7c15c284b39ab6b0a676e
1 parent c2f0adb commit f320db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public String currentStateMessage() {
9292
headerName = headerName.substring(0, headerName.indexOf(':')+1) + "...";
9393
msg = format("parsing HTTP/1.1 header, receiving [%s]", headerName);
9494
} else {
95-
msg =format("HTTP/1.1 parser receiving [%s]", state, sb.toString());
95+
msg = format("HTTP/1.1 parser receiving [%s]", sb.toString());
9696
}
97-
return format("%s, parser state [%s]", msg , state);
97+
return format("%s, parser state [%s]", msg, state);
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)