Capitalization in the "Server" field.

This commit is contained in:
Valentin Bartenev
2018-03-13 20:32:47 +03:00
parent 1ac9db4750
commit bebc5845f8
4 changed files with 5 additions and 5 deletions

View File

@@ -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);