Skip to content

Commit 5ad7f7a

Browse files
committed
Actually count number of bytes sent in protocol handshake
1 parent ae02d81 commit 5ad7f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/ProtocolHandshake.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Result createSession(HttpClient client, Command command)
6363
FileBackedOutputStream os = new FileBackedOutputStream(threshold);
6464
try (
6565
CountingOutputStream counter = new CountingOutputStream(os);
66-
Writer writer = new OutputStreamWriter(os, UTF_8);
66+
Writer writer = new OutputStreamWriter(counter, UTF_8);
6767
NewSessionPayload payload = NewSessionPayload.create(desired)) {
6868

6969
payload.writeTo(writer);

0 commit comments

Comments
 (0)