Added support in HttpContext for submitting empty POST requests.
This commit is contained in:
parent
db7c61a140
commit
84b3c3fa23
@ -2,7 +2,7 @@ apply plugin: "groovy"
|
||||
apply plugin: "maven"
|
||||
|
||||
group = "com.jdbernard"
|
||||
version = "3.4"
|
||||
version = "3.5"
|
||||
|
||||
repositories {
|
||||
mavenCentral() }
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user