summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_controller.c4
-rw-r--r--src/nxt_http_request.c2
-rw-r--r--test/test_perl_application.py2
-rw-r--r--test/test_python_application.py2
4 files changed, 5 insertions, 5 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);
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 0fbcdbbc..40cbaf40 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -282,7 +282,7 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r)
goto fail;
}
- nxt_http_field_set(server, "Server", "unit/" NXT_VERSION);
+ nxt_http_field_set(server, "Server", "Unit/" NXT_VERSION);
if (r->resp.date == NULL) {
date = nxt_list_zero_add(r->resp.fields);
diff --git a/test/test_perl_application.py b/test/test_perl_application.py
index f5a23a69..bfc82f99 100644
--- a/test/test_perl_application.py
+++ b/test/test_perl_application.py
@@ -21,7 +21,7 @@ class TestUnitPerlApplication(unit.TestUnitApplicationPerl):
self.assertEqual(resp['status'], 200, 'status')
headers = resp['headers']
- self.assertRegex(headers.pop('Server'), r'unit/[\d\.]+',
+ self.assertRegex(headers.pop('Server'), r'Unit/[\d\.]+',
'server header')
self.assertLess(abs(time.mktime(time.gmtime()) -
time.mktime(time.strptime(headers.pop('Date'),
diff --git a/test/test_python_application.py b/test/test_python_application.py
index 00b901bc..3090cb2a 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -20,7 +20,7 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertEqual(resp['status'], 200, 'status')
headers = resp['headers']
- self.assertRegex(headers.pop('Server'), r'unit/[\d\.]+',
+ self.assertRegex(headers.pop('Server'), r'Unit/[\d\.]+',
'server header')
self.assertLess(abs(time.mktime(time.gmtime()) -
time.mktime(time.strptime(headers.pop('Date'),