Skip to content

Commit eea53bd

Browse files
karanshah-browserstackfrancisf
authored andcommitted
Fix updateSessionStatus content type
1 parent 2170cbc commit eea53bd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/java/com/browserstack/client/BrowserStackRequest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
import com.browserstack.client.exception.BrowserStackObjectNotFound;
66
import com.fasterxml.jackson.databind.node.ArrayNode;
77
import com.fasterxml.jackson.databind.node.ObjectNode;
8-
import com.google.api.client.http.HttpContent;
9-
import com.google.api.client.http.HttpRequest;
10-
import com.google.api.client.http.HttpResponse;
11-
import com.google.api.client.http.UrlEncodedContent;
8+
import com.google.api.client.http.*;
129
import com.google.api.client.util.escape.CharEscapers;
1310

1411
import java.io.ByteArrayOutputStream;
@@ -73,8 +70,7 @@ public BrowserStackRequest body(String body) {
7370
if (!canContainBody()) {
7471
throw new IllegalStateException("Unsupported operation");
7572
}
76-
77-
httpRequest.setContent(new UrlEncodedContent(body));
73+
httpRequest.setContent(ByteArrayContent.fromString("application/json", body));
7874
return this;
7975
}
8076

0 commit comments

Comments
 (0)