Browse Source

[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
personal/stbuehler/cleanup-build
Glenn Strauss 4 years ago
parent
commit
875e339faf
  1. 1
      src/http-header-glue.c

1
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;

Loading…
Cancel
Save