File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/main/java/com/browserstack/client Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 55import com .browserstack .client .exception .BrowserStackObjectNotFound ;
66import com .fasterxml .jackson .databind .node .ArrayNode ;
77import 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 .*;
129import com .google .api .client .util .escape .CharEscapers ;
1310
1411import 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
You can’t perform that action at this time.
0 commit comments