mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Removed redundant cast in try_parse()
This commit is contained in:
1 parent
33c56b0edc
commit
5680b0fcc5
1 file changed
+1
-1
+1
-1
@@ -4042,7 +4042,7 @@ static void try_parse(struct connection *conn) {
|
|||||||
if (conn->request_len > 0) {
|
if (conn->request_len > 0) {
|
||||||
const char *cl_hdr = mg_get_header(&conn->mg_conn, "Content-Length");
|
const char *cl_hdr = mg_get_header(&conn->mg_conn, "Content-Length");
|
||||||
conn->cl = cl_hdr == NULL ? 0 : to64(cl_hdr);
|
conn->cl = cl_hdr == NULL ? 0 : to64(cl_hdr);
|
||||||
conn->mg_conn.content_len = (long int) conn->cl;
|
conn->mg_conn.content_len = conn->cl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user