diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-22 15:33:59 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-22 15:35:39 -0400 |
commit | 875e339faf5a9fe92f93187fee8c598da3f2767d (patch) | |
tree | 8e90353f00d1364fb7f6b764dde16ded6635c6f1 | |
parent | 0c1aed55d5b460a5bedac798401e5b84b080d58c (diff) | |
download | lighttpd-git-875e339faf5a9fe92f93187fee8c598da3f2767d.tar.gz |
[core] fix 1.4.46 regression in Last-Modified
fix 1.4.46 regression in Last-Modified string cache
(thx avij)
x-ref:
"Oversized request-header"
https://redmine.lighttpd.net/boards/2/topics/7686
-rw-r--r-- | src/http-header-glue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c index 0c32f6b4..717a73e5 100644 --- a/src/http-header-glue.c +++ b/src/http-header-glue.c @@ -142,6 +142,7 @@ buffer * strftime_cache_get(server *srv, time_t last_mod) { srv->mtime_cache[i].mtime = last_mod; tm = gmtime(&(srv->mtime_cache[i].mtime)); + buffer_string_set_length(srv->mtime_cache[i].str, 0); buffer_append_strftime(srv->mtime_cache[i].str, "%a, %d %b %Y %H:%M:%S GMT", tm); return srv->mtime_cache[i].str; |