commit | 055f97be2d0100490953cf63245d2cbbd92389af | [log] [tgz] |
---|---|---|
author | Piotr Sikora <piotrsikora@google.com> | Tue Jun 13 17:01:08 2017 +0300 |
committer | Piotr Sikora <piotrsikora@google.com> | Tue Jun 13 17:01:08 2017 +0300 |
tree | 4603585baac5fb1a790d42e3070352cf6b444b61 | |
parent | 1720431ad40e48749fac7e06c9034341ac53e14c [diff] |
HTTP/2: reject HTTP/2 requests without ":scheme" pseudo-header. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 8e1b7ae..7725616 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c
@@ -3332,6 +3332,7 @@ 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);