Added more information towards dynamic pages

This commit is contained in:
Nate Choe
2022-02-14 17:26:47 -06:00
parent e1fd93f5ab
commit ce6bc14fa5
3 changed files with 5 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ static int processField(Connection *conn) {
"Content-Length") == 0)
conn->bodylen = atol(conn->fields[i].value);
}
conn->body = malloc(conn->bodylen + 1);
conn->body = malloc(conn->bodylen);
if (conn->body == NULL)
return 1;
conn->receivedBody = 0;