mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 13:35:00 +00:00
[mod_verto] fix crash on vhost http server requests without content type
This commit is contained in:
parent
3edf08bfb2
commit
39ff576097
@ -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…
x
Reference in New Issue
Block a user