mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Added cast in try_parse()
This commit is contained in:
1 parent
e94a02dc12
commit
8750f8af1f
1 file changed
+1
-1
+1
-1
@@ -4042,7 +4042,7 @@ static void try_parse(struct connection *conn) {
|
||||
if (conn->request_len > 0) {
|
||||
const char *cl_hdr = mg_get_header(&conn->mg_conn, "Content-Length");
|
||||
conn->cl = cl_hdr == NULL ? 0 : to64(cl_hdr);
|
||||
conn->mg_conn.content_len = conn->cl;
|
||||
conn->mg_conn.content_len = (size_t) conn->cl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user