save the entire post request body to request

This commit is contained in:
lxsang 2022-08-19 17:57:45 +02:00
parent 5d79f912c1
commit 7bf58c1d01
2 changed files with 74 additions and 2 deletions

73
build.json Normal file
View File

@ -0,0 +1,73 @@
{
"name": "ant-http",
"targets":{
"configure": {
"require": ["linux"],
"jobs": [
{
"name": "linux-exec",
"data": {
"cmd":"libtoolize",
"pwd": "home://workspace/ant-http"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"aclocal",
"pwd": "home://workspace/ant-http"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"autoconf",
"pwd": "home://workspace/ant-http"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"automake --add-missing",
"pwd": "home://workspace/ant-http"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"./configure --prefix=/usr --enable-debug=no",
"pwd": "home://workspace/ant-http"
}
}
]
},
"clean": {
"require": ["linux"],
"jobs": [
{
"name": "linux-exec",
"data": {
"cmd":"make clean",
"pwd": "home://workspace/ant-http"
}
}
]
},
"build": {
"require": ["linux"],
"jobs": [
{
"name": "linux-exec",
"data": {
"cmd":"make",
"pwd": "home://workspace/ant-http"
}
}
]
},
"clean and build": {
"depend": ["clean", "build"],
"jobs": []
}
}
}

View File

@ -1228,8 +1228,7 @@ void *decode_post_request(void *data)
key = ctype;
if (pquery)
{
dput(request, key, strdup(pquery));
free(pquery);
dput(request, key, pquery);
}
else if (clen > 0)
{