[mod_verto] fix crash on vhost http server requests without content type

This commit is contained in:
Mike Jerris 2020-02-15 13:40:00 -05:00
parent 3edf08bfb2
commit 39ff576097
1 changed files with 1 additions and 1 deletions

View File

@ -1637,7 +1637,7 @@ new_req:
goto done;
}
if (!strncmp(request.method, "POST", 4) && request.content_length &&
if (!strncmp(request.method, "POST", 4) && request.content_length && request.content_type &&
!strncmp(request.content_type, "application/x-www-form-urlencoded", 33)) {
char *buffer = NULL;