Added support in HttpContext for submitting empty POST requests.

This commit is contained in:
Jonathan Bernard 2015-05-18 19:21:16 -05:00
parent db7c61a140
commit 84b3c3fa23
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apply plugin: "groovy"
apply plugin: "maven"
group = "com.jdbernard"
version = "3.4"
version = "3.5"
repositories {
mavenCentral() }

View File

@ -102,7 +102,9 @@ public class HttpContext {
message.append(requestBody)
message.append("\r\n") }
else message.append("\r\n")
else if (method == "POST") {
message.append("Content-Length: 0\r\n\r\n") }
else message.append("\r\n")
return message.toString()
}