Bugfix for POST and PUT method

This commit is contained in:
2020-12-29 11:48:56 +01:00
parent bc4a764bd5
commit 798c41f1c8
5 changed files with 32 additions and 4 deletions

View File

@ -419,6 +419,11 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int
if (php_fpm.socket != 0) close(php_fpm.socket);
http_free_req(&req);
http_free_res(&res);
if (client->buf != NULL) {
free(client->buf);
client->buf_off = 0;
client->buf_len = 0;
}
return !client_keep_alive;
}