1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 268 unchanged lines hidden (view full) ---

277{
278 u_char *p, *end;
279 nxt_http_field_t *server, *date, *content_length;
280
281 static nxt_time_string_t date_cache = {
282 (nxt_atomic_uint_t) -1,
283 nxt_http_date,
284 "%s, %02d %s %4d %02d:%02d:%02d GMT",
285 sizeof("Wed, 31 Dec 1986 16:40:00 GMT") - 1,
285 nxt_length("Wed, 31 Dec 1986 16:40:00 GMT"),
286 NXT_THREAD_TIME_GMT,
287 NXT_THREAD_TIME_SEC,
288 };
289
290 /*
291 * TODO: "Server", "Date", and "Content-Length" processing should be moved
292 * to the last header filter.
293 */

--- 200 unchanged lines hidden ---