Skip to content

Commit

Permalink
Added cast in try_parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Mar 31, 2014
1 parent e94a02d commit 8750f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 8750f8a

Please sign in to comment.