Skip to content

Commit feb7b48

Browse files
author
Aman Aalam
authored
Merge pull request #29 from trolley/dev
RC: Fix: Make HTTP PATCH requests to use system properties
2 parents deacca9 + 3bdfd03 commit feb7b48

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add this dependency to your project's POM:
2020
<dependency>
2121
<groupId>com.trolley</groupId>
2222
<artifactId>java-sdk</artifactId>
23-
<version>1.1.2</version>
23+
<version>1.1.3</version>
2424
</dependency>
2525
```
2626

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.trolley</groupId>
55
<artifactId>java-sdk</artifactId>
6-
<version>1.1.2</version>
6+
<version>1.1.3</version>
77
<description>Java SDK for Trolley API</description>
88
<packaging>jar</packaging>
99
<name>Trolley Java SDK</name>

src/main/java/com/trolley/trolley/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public String post(final String endPoint) throws Exception {
130130
public String patch(final String endPoint, final String body) throws Exception {
131131
String StringResponse = "";
132132
try {
133-
final HttpClient httpclient = (HttpClient)HttpClients.createDefault();
133+
final HttpClient httpclient = (HttpClient)HttpClients.createSystem();
134134
final HttpPatch httpPatch = new HttpPatch(this.config.getApiBase() + endPoint);
135135
final StringEntity params = new StringEntity(body);
136136
final int timeStamp = (int)(System.currentTimeMillis() / 1000L);

src/main/java/com/trolley/trolley/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
public class Version {
77
public static int MAJOR = 1;
88
public static int MINOR = 1;
9-
public static int PATCH = 2;
9+
public static int PATCH = 3;
1010
}

0 commit comments

Comments
 (0)