diff --git a/project.properties b/project.properties index fafceaf..78f330b 100644 --- a/project.properties +++ b/project.properties @@ -1,6 +1,6 @@ -#Sat, 21 Sep 2013 02:27:46 -0500 +#Sat, 11 Jan 2014 18:55:50 -0600 name=jdb-util -version=2.2 +version=2.3 lib.local=true -build.number=8 +build.number=0 diff --git a/src/main/com/jdbernard/net/HttpContext.groovy b/src/main/com/jdbernard/net/HttpContext.groovy index fbe3162..b4d1186 100644 --- a/src/main/com/jdbernard/net/HttpContext.groovy +++ b/src/main/com/jdbernard/net/HttpContext.groovy @@ -47,9 +47,9 @@ public class HttpContext { message.append("\r\n") } if (request) { - def jsonRequestBuilder = new JsonBuilder(request) - String requestBody = jsonRequestBuilder.toString() + String requestBody = new JsonBuilder(request).toString() + message.append("Content-Type: application/json\r\n") message.append("Content-Length: ") message.append(requestBody.length()) message.append("\r\n\r\n")