diff --git a/userspace/falco/webserver.cpp b/userspace/falco/webserver.cpp index 6098063e..5af8db84 100644 --- a/userspace/falco/webserver.cpp +++ b/userspace/falco/webserver.cpp @@ -150,7 +150,7 @@ bool k8s_audit_handler::handlePost(CivetServer *server, struct mg_connection *co // Ensure that the content-type is application/json const char *ct = server->getHeader(conn, string("Content-Type")); - if(ct == NULL || string(ct) != "application/json") + if(ct == NULL || strstr(ct, "application/json") == NULL) { mg_send_http_error(conn, 400, "Wrong Content Type");