Merge pull request #366 from signalwire/verto-http-crash
[mod_verto] fix crash on vhost http server requests without content type
This commit is contained in:
commit
2495b94332
|
@ -1637,7 +1637,7 @@ new_req:
|
||||||
goto done;
|
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)) {
|
!strncmp(request.content_type, "application/x-www-form-urlencoded", 33)) {
|
||||||
|
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
|
|
Loading…
Reference in New Issue