Commit c45b0241 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Do not strcasecmp() content-type if unset (NULL)

Thanks to lns for finding it.
parent 5de3e8b3
......@@ -280,6 +280,9 @@ int httpp_parse_postdata(http_parser_t *parser, const char *body_data, size_t le
{
const char *header = httpp_getvar(parser, "content-type");
if (!header)
return -1;
if (strcasecmp(header, "application/x-www-form-urlencoded") != 0) {
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment