Skip to content

Commit

Permalink
okhttp: Avoid default locale in String.format()
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Jul 13, 2022
1 parent f9d5ce7 commit eb25807
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.io.IOException;
import java.net.Socket;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.Executor;
Expand Down Expand Up @@ -552,6 +553,7 @@ public void headers(boolean outFinished,
if (metadataSize > config.maxInboundMetadataSize) {
respondWithHttpError(streamId, inFinished, 431, Status.Code.RESOURCE_EXHAUSTED,
String.format(
Locale.US,
"Request metadata larger than %d: %d",
config.maxInboundMetadataSize,
metadataSize));
Expand Down

0 comments on commit eb25807

Please sign in to comment.