Fixed resetConnection()

This commit is contained in:
Nate Choe
2022-01-22 20:22:22 -06:00
parent ad06bbc7be
commit fbb3a4e8cd
3 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ Connection *newConnection(int fd) {
}
void resetConnection(Connection *conn) {
conn->type = RECEIVE_REQUEST;
conn->progress = RECEIVE_REQUEST;
conn->fieldCount = 0;
free(conn->body);
free(conn->path);