summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_response.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-02-12 16:58:40 +0300
committerValentin Bartenev <vbart@nginx.com>2018-02-12 16:58:40 +0300
commit9646772a00e50c437e0b3204ce6233b6414e1053 (patch)
tree07d32260bd2b109883f865fdefb350f09023740a /src/nxt_http_response.c
parentdc50773e518f6e68109384cb37c91985dbc3fe63 (diff)
downloadunit-9646772a00e50c437e0b3204ce6233b6414e1053.tar.gz
unit-9646772a00e50c437e0b3204ce6233b6414e1053.tar.bz2
HTTP: the Date response header.
Diffstat (limited to '')
-rw-r--r--src/nxt_http_response.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http_response.c b/src/nxt_http_response.c
index 330890c1..755182db 100644
--- a/src/nxt_http_response.c
+++ b/src/nxt_http_response.c
@@ -21,6 +21,8 @@ nxt_lvlhsh_t nxt_response_fields_hash;
static nxt_http_field_proc_t nxt_response_fields[] = {
{ nxt_string("Status"), &nxt_http_response_status, 0 },
{ nxt_string("Server"), &nxt_http_response_skip, 0 },
+ { nxt_string("Date"), &nxt_http_response_field,
+ offsetof(nxt_http_request_t, resp.date) },
{ nxt_string("Connection"), &nxt_http_response_skip, 0 },
{ nxt_string("Content-Type"), &nxt_http_response_field,
offsetof(nxt_http_request_t, resp.content_type) },