Skip to content

Commit

Permalink
Revert logging change.
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-brown committed Sep 12, 2024
1 parent e08fb9c commit 90cdee2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,13 @@ public void encodeRequest(OutputStream outputStream) throws IOException {
monitorStream.println(String.format("HTTP %d", statusCode));

for (var entry : connection.getHeaderFields().entrySet()) {
monitorStream.println(String.format("%s: %s", entry.getKey(), String.join(", ", entry.getValue())));
var key = entry.getKey();

if (key == null) {
continue;
}

monitorStream.println(String.format("%s: %s", key, String.join(", ", entry.getValue())));
}
}

Expand Down

0 comments on commit 90cdee2

Please sign in to comment.