summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-13 20:32:47 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-13 20:32:47 +0300
commitbebc5845f8454e91d12f2fc2561686e627f2f9aa (patch)
tree16e2e3eeb272d6ddac69c286e5c0cf6b517b2c22 /src/nxt_controller.c
parent1ac9db47501a1c5e4e023945ad60614b8fc3b52d (diff)
downloadunit-bebc5845f8454e91d12f2fc2561686e627f2f9aa.tar.gz
unit-bebc5845f8454e91d12f2fc2561686e627f2f9aa.tar.bz2
Capitalization in the "Server" field.
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 6c477157..d89c8dbc 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -1215,7 +1215,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: Unit/" NXT_VERSION "\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
@@ -1237,7 +1237,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: Unit/" NXT_VERSION "\r\n"
"Date: ");
b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length);