diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-12-07 17:02:05 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-12-07 17:02:05 +0300 |
commit | 4be977454097b154b539b9f82a35e0cae7a59168 (patch) | |
tree | 0789505d8b74f47fe92f12f356d44418e0acaff9 /src/nxt_application.c | |
parent | 3b6d3151f1396f71ca34f047ecb55eaff020ee1c (diff) | |
download | unit-4be977454097b154b539b9f82a35e0cae7a59168.tar.gz unit-4be977454097b154b539b9f82a35e0cae7a59168.tar.bz2 |
Fixed protocol version string handling in router.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r-- | src/nxt_application.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |