Skip to content
Permalink
Browse files
8257707: Fix incorrect format string in Http1HeaderParser
Backport-of: c6f93ec9f21f6db64ad7c15c284b39ab6b0a676e
  • Loading branch information
Yuri Nesterenko committed Apr 1, 2021
1 parent c2f0adb commit f320db0ca560a2da794471034e4697d6d0bb0dfb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java
@@ -92,9 +92,9 @@ public String currentStateMessage() {
headerName = headerName.substring(0, headerName.indexOf(':')+1) + "...";
msg = format("parsing HTTP/1.1 header, receiving [%s]", headerName);
} else {
msg =format("HTTP/1.1 parser receiving [%s]", state, sb.toString());
msg = format("HTTP/1.1 parser receiving [%s]", sb.toString());
}
return format("%s, parser state [%s]", msg , state);
return format("%s, parser state [%s]", msg, state);
}

/**

1 comment on commit f320db0

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on f320db0 Apr 1, 2021

Please sign in to comment.