harden WS, uniformize RFC citation

This commit is contained in:
Sergio R. Caprile committed 2026-11-23 09:56:27 -03:00
1 parent 2cf96bcb19
commit 8996d96443
11 files changed
+63 -51

No files matched your search

+1 -1
View File
@@ -1197,7 +1197,7 @@ static void http_cb(struct mg_connection *c, int ev, void *ev_data) {
// POST and PUT should include an entity body. Therefore, they should
// contain a Content-length header (unless the body length is 0, in
// which case it can be omitted). Other requests can also contain a
// body, but their content has no defined semantics (RFC 7231)
// body, but their content has no defined semantics (RFC-7231)
// It is a non-chunked request, so the offset (ofs) is updated after
// exiting this branch.
if (hm.body.len != 0) require_content_len = true;