HTTP/2: reject HTTP/2 requests without ":scheme" pseudo-header.

Change-Id: I039758a3f0bcdbaf689debeeebec29209f608ff2
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Reviewed-on: https://nginx-review.googlesource.com/2826
Reviewed-by: Lizan Zhou <zlizan@google.com>
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index a5a5dff..599baa3 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -3333,7 +3333,8 @@
     static const u_char ending[] = " HTTP/2.0";
 
     if (r->method_name.len == 0
-        || r->unparsed_uri.len == 0)
+        || r->unparsed_uri.len == 0
+        || r->schema_start == NULL)
     {
         ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
         return NGX_ERROR;