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:
Andrey Volk 2020-02-15 22:58:46 +04:00 committed by GitHub
commit 2495b94332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;