revert b5e122 for now.

This commit is contained in:
Joris Vink 2018-07-06 11:21:46 +02:00
parent 4f16a5d272
commit f02f88295c
1 changed files with 0 additions and 5 deletions

View File

@ -1033,17 +1033,12 @@ http_populate_post(struct http_request *req)
ssize_t ret;
int i, v;
struct kore_buf *body;
const char *content;
char data[BUFSIZ];
char *args[HTTP_MAX_QUERY_ARGS], *val[3], *string;
if (req->method != HTTP_METHOD_POST)
return;
if (!http_request_header(req, "content-type", &content) ||
strcasecmp(content, "application/x-www-form-urlencoded"))
return;
if (req->http_body != NULL) {
body = NULL;
req->http_body->offset = req->content_length;