summaryrefslogtreecommitdiff
path: root/src/mod_expire.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-09-12 22:23:16 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-11 12:19:26 -0400
commit367f30a64506cd27acdd4458ce2b10edc44693b4 (patch)
tree23e9afbc32a00313c25c6600520edb5bfca1a99c /src/mod_expire.c
parent2e0676fd6dbab9da6b838f8f803bfc5dec11b346 (diff)
downloadlighttpd-git-367f30a64506cd27acdd4458ce2b10edc44693b4.tar.gz
[multiple] extend enum http_header_e list
Diffstat (limited to 'src/mod_expire.c')
-rw-r--r--src/mod_expire.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c
index 1a06945c..4ada2a85 100644
--- a/src/mod_expire.c
+++ b/src/mod_expire.c
@@ -318,7 +318,9 @@ REQUEST_FUNC(mod_expire_handler) {
/* HTTP/1.0 */
buffer_clear(tb);
buffer_append_strftime(tb, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&(expires)));
- http_header_response_set(r, HTTP_HEADER_OTHER, CONST_STR_LEN("Expires"), CONST_BUF_LEN(tb));
+ http_header_response_set(r, HTTP_HEADER_EXPIRES,
+ CONST_STR_LEN("Expires"),
+ CONST_BUF_LEN(tb));
/* HTTP/1.1 */
buffer_copy_string_len(tb, CONST_STR_LEN("max-age="));