Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
8218:33feac1e57ac | 8219:1307308c3cf1 |
---|---|
1545 | 1545 |
1546 h->hash = r->header_hash; | 1546 h->hash = r->header_hash; |
1547 | 1547 |
1548 h->key.len = r->header_name_end - r->header_name_start; | 1548 h->key.len = r->header_name_end - r->header_name_start; |
1549 h->key.data = r->header_name_start; | 1549 h->key.data = r->header_name_start; |
1550 //h->key.data[h->key.len] = '\0'; | 1550 h->key.data[h->key.len] = '\0'; |
1551 | 1551 |
1552 h->value.len = r->header_end - r->header_start; | 1552 h->value.len = r->header_end - r->header_start; |
1553 h->value.data = r->header_start; | 1553 h->value.data = r->header_start; |
1554 //h->value.data[h->value.len] = '\0'; | 1554 h->value.data[h->value.len] = '\0'; |
1555 | 1555 |
1556 h->lowcase_key = ngx_pnalloc(r->pool, h->key.len); | 1556 h->lowcase_key = ngx_pnalloc(r->pool, h->key.len); |
1557 if (h->lowcase_key == NULL) { | 1557 if (h->lowcase_key == NULL) { |
1558 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 1558 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
1559 break; | 1559 break; |