Skip to content

Commit 94f7e8d

Browse files
committed
Fix bad merge causing readEntity() to be called twice
1 parent e327d1b commit 94f7e8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/creatubbles/api/core/CreatubblesRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public T getResponse() {
161161
if (isSuccessStatus(response) && json.isEmpty()) {
162162
json = EMPTY_RESPONSE;
163163
}
164-
T creatubblesResponse = CreatubblesAPI.GSON.fromJson(response.readEntity(String.class), responseClass);
164+
T creatubblesResponse = CreatubblesAPI.GSON.fromJson(json, responseClass);
165165
creatubblesResponse.setOriginatingRequest(this);
166166
responseCache = creatubblesResponse;
167167
}

0 commit comments

Comments
 (0)