Skip to content

Commit

Permalink
Merge pull request #508 from advantageous/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
RichardHightower committed Oct 28, 2015
2 parents a3d861a + 4273ca2 commit 30dc28a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

ext {
projectVersion = '0.9.1-SNAPSHOT'
boonVersion = '0.5.5'
boonVersion = '0.5.6-SNAPSHOT'
springFrameworkVersion = '4.2.1.RELEASE'
springBootVersion = '1.2.6.RELEASE'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public MethodCall<Object> transform(final HttpRequest request,
}

private boolean isJsonContent(final String contentType) {
return contentType == null ||
return Str.isEmpty(contentType) ||
contentType.equals("application/json") ||
contentType.equals("application/json;charset=utf-8") ||
contentType.startsWith("application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public final HttpTextResponse get(String uri) {
public final HttpTextResponse postBody(String uri, Object object) {

final HttpRequestBuilder httpRequestBuilder = HttpRequestBuilder.httpRequestBuilder();
httpRequestBuilder.setMethodPost();
httpRequestBuilder.setUri("/services" + uri);
httpRequestBuilder.setBody(JsonFactory.toJson(object));
httpRequestBuilder.setJsonBodyForPost(JsonFactory.toJson(object));
httpRequestBuilder.setContentType(null);
final AtomicReference<HttpTextResponse> response = getHttpResponseAtomicReference(httpRequestBuilder);

return response.get();
Expand Down

0 comments on commit 30dc28a

Please sign in to comment.