style: clang-format

This commit is contained in:
2025-12-01 22:30:39 +01:00
parent 4216bc6cf0
commit f08e17d8c8

View File

@@ -80,9 +80,8 @@ static bool parse_version(cws_request_s *req, char **cursor) {
} }
static bool parse_headers(cws_request_s *req, char **cursor) { static bool parse_headers(cws_request_s *req, char **cursor) {
req->headers = req->headers = hm_new(my_str_hash_fn, my_str_equal_fn, my_str_free_fn, my_str_free_fn,
hm_new(my_str_hash_fn, my_str_equal_fn, my_str_free_fn, my_str_free_fn, sizeof(char) * CWS_HTTP_HEADER_MAX, sizeof(char) * CWS_HTTP_HEADER_CONTENT_MAX);
sizeof(char) * CWS_HTTP_HEADER_MAX, sizeof(char) * CWS_HTTP_HEADER_CONTENT_MAX);
char *s = *cursor + strspn(*cursor, "\r\n"); char *s = *cursor + strspn(*cursor, "\r\n");
while (*s != '\0' && *s != '\r') { while (*s != '\0' && *s != '\r') {