diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e5c71f..ca61339 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
+
+# [](https://github.com/moip/moip-sdk-java/compare/v4.1.0...v4.1.1) (2018-03-02)
+
+
+### Bug Fixes
+
+* **Client**: fix a bug in method `doRequest()` ([]())
+
+
-# [](https://github.com/moip/moip-sdk-java/compare/v4.0.0...v4.1.0) (2018-01-06)
+# [](https://github.com/moip/moip-sdk-java/compare/v4.0.0...v4.1.0) (2018-02-27)
### Features
diff --git a/README.md b/README.md
index 73c809d..f6b7eab 100644
--- a/README.md
+++ b/README.md
@@ -99,7 +99,7 @@ Adicionar no seu pom.xml:
br.com.moip
java-sdk
- 4.1.0
+ 4.1.1
```
diff --git a/build.gradle b/build.gradle
index 74be98b..24b208f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ apply plugin: 'signing'
group = 'br.com.moip'
archivesBaseName = "java-sdk"
-version = '4.1.0'
+version = '4.1.1'
description = "Moip v2 SDK"
diff --git a/src/main/java/br/com/moip/Client.java b/src/main/java/br/com/moip/Client.java
index 651f02e..3a03c8f 100644
--- a/src/main/java/br/com/moip/Client.java
+++ b/src/main/java/br/com/moip/Client.java
@@ -106,7 +106,7 @@ private T doRequest(final RequestProps requestProps) {
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestProperty("User-Agent", USER_AGENT);
conn.setRequestProperty("Content-type", requestProps.contentType.getMimeType());
- conn.setRequestProperty("Accept", requestProps.accept);
+ if (requestProps.accept != null) conn.setRequestProperty("Accept", requestProps.accept);
conn.setRequestMethod(requestProps.method);
diff --git a/src/main/java/br/com/moip/resource/Order.java b/src/main/java/br/com/moip/resource/Order.java
index e5e0a89..47e45c6 100644
--- a/src/main/java/br/com/moip/resource/Order.java
+++ b/src/main/java/br/com/moip/resource/Order.java
@@ -3,6 +3,7 @@
import br.com.moip.resource.links.OrderLinks;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
public class Order {
@@ -11,7 +12,7 @@ public class Order {
private String ownId;
private OrderStatus status;
private String platform;
- private String createdAt, updatedAt;
+ private Date createdAt, updatedAt;
private Amount amount;
private final List- items;
private final List addresses = new ArrayList<>();
@@ -51,9 +52,9 @@ public OrderStatus getStatus() {
public String getPlatform() { return platform; }
- public String getCreatedAt() { return createdAt; }
+ public Date getCreatedAt() { return createdAt; }
- public String getUpdatedAt() { return updatedAt; }
+ public Date getUpdatedAt() { return updatedAt; }
public Amount getAmount() {
return amount;
diff --git a/src/test/java/br/com/moip/api/OrderAPITest.java b/src/test/java/br/com/moip/api/OrderAPITest.java
index ed584cb..239f5d1 100644
--- a/src/test/java/br/com/moip/api/OrderAPITest.java
+++ b/src/test/java/br/com/moip/api/OrderAPITest.java
@@ -23,6 +23,7 @@
import java.text.SimpleDateFormat;
import java.util.Calendar;
+import java.util.Date;
import java.util.GregorianCalendar;
import java.util.UUID;
@@ -74,8 +75,8 @@ public void testCreate() {
assertEquals("the_order.001", createdOrder.getOwnId());
assertEquals(OrderStatus.CREATED, createdOrder.getStatus());
assertEquals("V2", createdOrder.getPlatform());
- assertEquals("2018-02-22T15:33:38.493-03", createdOrder.getCreatedAt());
- assertEquals("2018-02-22T15:33:38.493-03", createdOrder.getUpdatedAt());
+ assertEquals("2018-02-22", simpleDateFormat.format(createdOrder.getCreatedAt()));
+ assertEquals("2018-02-22", simpleDateFormat.format(createdOrder.getUpdatedAt()));
assertEquals(0, createdOrder.getAmount().getPaid().intValue());
assertEquals(11000, createdOrder.getAmount().getTotal().intValue());
assertEquals(0, createdOrder.getAmount().getFees().intValue());