diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-02-12 16:58:40 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-02-12 16:58:40 +0300 |
commit | 9646772a00e50c437e0b3204ce6233b6414e1053 (patch) | |
tree | 07d32260bd2b109883f865fdefb350f09023740a /src/nxt_http_response.c | |
parent | dc50773e518f6e68109384cb37c91985dbc3fe63 (diff) | |
download | unit-9646772a00e50c437e0b3204ce6233b6414e1053.tar.gz unit-9646772a00e50c437e0b3204ce6233b6414e1053.tar.bz2 |
HTTP: the Date response header.
Diffstat (limited to 'src/nxt_http_response.c')
-rw-r--r-- | src/nxt_http_response.c | 2 |
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) }, |