Skip to content
Permalink
Browse files
8257707: Fix incorrect format string in Http1HeaderParser
Reviewed-by: shade
  • Loading branch information
turbanoff authored and dfuch committed Dec 4, 2020
1 parent fbdc187 commit c6f93ec9f21f6db64ad7c15c284b39ab6b0a676e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java
@@ -96,9 +96,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 c6f93ec

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on c6f93ec Dec 4, 2020

Please sign in to comment.