mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Use MG_EV_WS_CTL for WS control messages
This commit is contained in:
1 parent
e0a1feafe0
commit
3895678bee
7 files changed
+32
-30
No files matched your search
+1
-1
@@ -169,7 +169,7 @@ int mg_http_parse(const char *s, size_t len, struct mg_http_message *hm) {
|
||||
mg_http_parse_headers(s, end, hm->headers,
|
||||
sizeof(hm->headers) / sizeof(hm->headers[0]));
|
||||
if ((cl = mg_http_get_header(hm, "Content-Length")) != NULL) {
|
||||
hm->body.len = (size_t) mg_to64(cl->ptr);
|
||||
hm->body.len = (size_t) mg_to64(*cl);
|
||||
hm->message.len = req_len + hm->body.len;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user