add generic hashmap and memory usage fix

This commit is contained in:
2025-04-30 01:38:53 +02:00
parent 97db6c54e7
commit dc39cf9d64
13 changed files with 315 additions and 161 deletions

View File

@@ -12,6 +12,7 @@ cws_http *cws_http_parse(char *request_str, int sockfd) {
if (request == NULL) {
return NULL;
}
memset(request, 0, sizeof(cws_http));
/* Insert socket file descriptor */
request->sockfd = sockfd;