Skip to content
Open
Show file tree
Hide file tree
Changes from all 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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
.project
.classpath
.settings/
.idea
*.iml

/bin/
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.ge.predix.solsvc</groupId>
<artifactId>predix-rest-client</artifactId>
<version>2.3.88</version>
<version>2.3.88.2</version>
<packaging>bundle</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public CloseableHttpResponse post(String url, String request, List<Header> heade
int socketTimeout) {
try {
HttpPost method = new HttpPost(url);
org.apache.http.HttpEntity entity = new StringEntity(request);
org.apache.http.HttpEntity entity = new StringEntity(request, "utf-8");
method.setEntity(entity);
method.setHeaders(headers.toArray(new Header[headers.size()]));
try (CloseableHttpClient httpClient = getHttpClient(connectionTimeout, socketTimeout, url,
Expand All @@ -527,7 +527,7 @@ public CloseableHttpResponse post(String url, String request, List<Header> heade
throw new RuntimeException(
"unable to call url=" + url + " with headers=" + headers + " and body=" + request, e);
}
} catch (IOException e) {
} catch (Exception e) {
throw new RuntimeException(
"unable to call url=" + url + " with headers=" + headers + " and body=" + request, e);
}
Expand Down Expand Up @@ -583,7 +583,7 @@ public CloseableHttpResponse put(String url, String request, List<Header> header
this.restConfig.getProxyHost(), this.restConfig.getProxyPort(),
this.restConfig.getNoProxyHost(), this.restConfig.getProxyUser(), this.restConfig.getProxyPassword());) {
HttpPut method = new HttpPut(url);
org.apache.http.HttpEntity entity = new StringEntity(request);
org.apache.http.HttpEntity entity = new StringEntity(request, "utf-8");
method.setEntity(entity);
method.setHeaders(headers.toArray(new Header[headers.size()]));
CloseableHttpResponse httpResponse = httpClient.execute(method);
Expand Down