diff src/http/ngx_http_request.c @ 8219:1307308c3cf1 quic

Temporary fix for header null-termination in HTTP/3.
author Roman Arutyunyan <arut@nginx.com>
date Sat, 14 Mar 2020 13:18:55 +0300
parents 38c0898b6df7
children 268f4389130d
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1547,11 +1547,11 @@ ngx_http_process_request_headers(ngx_eve
 
             h->key.len = r->header_name_end - r->header_name_start;
             h->key.data = r->header_name_start;
-            //h->key.data[h->key.len] = '\0';
+            h->key.data[h->key.len] = '\0';
 
             h->value.len = r->header_end - r->header_start;
             h->value.data = r->header_start;
-            //h->value.data[h->value.len] = '\0';
+            h->value.data[h->value.len] = '\0';
 
             h->lowcase_key = ngx_pnalloc(r->pool, h->key.len);
             if (h->lowcase_key == NULL) {