diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
commit | 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (patch) | |
tree | 5f733eeaa090b0e8b14ac3de4d1a306a15628ed6 /src/nxt_controller.c | |
parent | 8a156a9fc410eaf8898b757f294d91031e596a11 (diff) | |
download | unit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.gz unit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.bz2 |
Added SERVER_SOFTWARE request meta-variable.
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r-- | src/nxt_controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 17627e83..8c098efc 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -1265,7 +1265,7 @@ nxt_controller_response(nxt_task_t *task, nxt_controller_request_t *req, body->mem.free = nxt_cpymem(body->mem.free, "\r\n", 2); size = sizeof("HTTP/1.1 " "\r\n") - 1 + status_line.length - + sizeof("Server: Unit/" NXT_VERSION "\r\n") - 1 + + sizeof("Server: " NXT_SERVER "\r\n") - 1 + sizeof("Date: Wed, 31 Dec 1986 16:40:00 GMT\r\n") - 1 + sizeof("Content-Type: application/json\r\n") - 1 + sizeof("Content-Length: " "\r\n") - 1 + NXT_SIZE_T_LEN @@ -1287,7 +1287,7 @@ nxt_controller_response(nxt_task_t *task, nxt_controller_request_t *req, status_line.length); nxt_str_set(&str, "\r\n" - "Server: Unit/" NXT_VERSION "\r\n" + "Server: " NXT_SERVER "\r\n" "Date: "); b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); |