summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_get_time.c12
-rw-r--r--src/http/ngx_http_header_filter.c3
2 files changed, 1 insertions, 14 deletions
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 <ngx_config.h>
-#include <ngx_core.h>
-
-
-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,