refactor(http): use sock_readall

This commit is contained in:
2025-09-16 22:48:27 +02:00
parent 883c64a012
commit f406e1f648
2 changed files with 12 additions and 29 deletions

View File

@@ -195,6 +195,7 @@ cws_http_s *cws_http_parse(string_s *request_str) {
}
CWS_LOG_DEBUG("location: %s", pch);
string_append(request->location, pch);
// TODO: fix www
request->location_path = string_format("%s/%s", "www", request->location->data);
/* Adjust location path */