diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-03-14 13:18:55 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-03-14 13:18:55 +0300 |
commit | 5399670fcc51b440f00a9a584654f7bcc52d3f88 (patch) | |
tree | 38e16402892ab5ad74230f1a4c58a4c207fae98d /src/http/ngx_http_request.c | |
parent | 1ac31c01b4a2df79a512a7b6bde67002b3e5259e (diff) | |
download | nginx-5399670fcc51b440f00a9a584654f7bcc52d3f88.tar.gz nginx-5399670fcc51b440f00a9a584654f7bcc52d3f88.zip |
Temporary fix for header null-termination in HTTP/3.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index ef305faf4..85b090d5f 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1547,11 +1547,11 @@ ngx_http_process_request_headers(ngx_event_t *rev) 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) { |