mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
HTTP/2: reject HTTP/2 requests without ":scheme" pseudo-header.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
aa04b091ae
commit
13f49b0013
@ -3332,6 +3332,7 @@ ngx_http_v2_construct_request_line(ngx_http_request_t *r)
|
||||
static const u_char ending[] = " HTTP/2.0";
|
||||
|
||||
if (r->method_name.len == 0
|
||||
|| r->schema_start == NULL
|
||||
|| r->unparsed_uri.len == 0)
|
||||
{
|
||||
ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
|
||||
|
Loading…
Reference in New Issue
Block a user