Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>

<artifactId>browserstack-integration</artifactId>
<version>1.2.1-SNAPSHOT</version>
<version>1.2.2-SNAPSHOT</version>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This snapshot version change is not required. It will be changed after the release of 1.2.1

<packaging>hpi</packaging>

<name>BrowserStack</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.Optional;

public class PluginsTracker {
private static final MediaType JSON = MediaType.get("application/json; charset=utf-8");

private static final String URL = "https://api.browserstack.com/ci_plugins/track";
private final String trackingId;
private transient OkHttpClient client;
Expand Down Expand Up @@ -52,7 +52,7 @@ public PluginsTracker(@Nullable final String customProxy) {
}

private void asyncPostRequestSilent(final String url, final String json) {
RequestBody body = RequestBody.create(JSON, json);
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), json);
Request request = new Request.Builder()
.url(url)
.post(body)
Expand Down