From 562e53ea7d2ec904abba1cf9a9766fe3a91574e8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 13 Nov 2003 06:14:05 +0000 Subject: nginx-0.0.1-2003-11-13-09:14:05 import --- src/http/ngx_http_get_time.c | 12 ------------ src/http/ngx_http_header_filter.c | 3 +-- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/http/ngx_http_get_time.c (limited to 'src/http') diff --git a/src/http/ngx_http_get_time.c b/src/http/ngx_http_get_time.c deleted file mode 100644 index 971914e4d..000000000 --- a/src/http/ngx_http_get_time.c +++ /dev/null @@ -1,12 +0,0 @@ - -#include -#include - - -size_t ngx_http_get_time(char *buf, time_t t) -{ - struct tm *tp; - - tp = gmtime(&t); - return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); -} diff --git a/src/http/ngx_http_header_filter.c b/src/http/ngx_http_header_filter.c index 99b2c9fe4..25107bf3e 100644 --- a/src/http/ngx_http_header_filter.c +++ b/src/http/ngx_http_header_filter.c @@ -335,8 +335,7 @@ static int ngx_http_header_filter(ngx_http_request_t *r) #if (NGX_HTTP_LOG_ALL_HEADERS_OUT) p = h->last; #endif - h->last += ngx_http_get_time(h->last, - r->headers_out.last_modified_time); + h->last += ngx_http_time(h->last, r->headers_out.last_modified_time); #if (NGX_HTTP_LOG_ALL_HEADERS_OUT) r->headers_out.last_modified = ngx_palloc(r->pool, -- cgit