From 4be977454097b154b539b9f82a35e0cae7a59168 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Thu, 7 Dec 2017 17:02:05 +0300 Subject: Fixed protocol version string handling in router. --- src/nxt_application.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nxt_application.c b/src/nxt_application.c index 8fa03e0e..50375569 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -842,7 +842,7 @@ nxt_app_http_req_header_parse(nxt_task_t *task, nxt_app_parse_ctx_t *ctx, h->done = 1; h->version.start = p->version.str; - h->version.length = nxt_strlen(p->version.str); + h->version.length = sizeof(p->version.str); h->method = p->method; -- cgit