Added Content-Type header for POST request with HttpContext.
This commit is contained in:
parent
3929968af1
commit
45f49d393e
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user