summaryrefslogtreecommitdiff
path: root/src/mod_expire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_expire.c')
-rw-r--r--src/mod_expire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c
index b58b97d..6aed514 100644
--- a/src/mod_expire.c
+++ b/src/mod_expire.c
@@ -339,7 +339,7 @@ URIHANDLER_FUNC(mod_expire_path_handler) {
response_header_overwrite(srv, con, CONST_STR_LEN("Expires"), CONST_BUF_LEN(p->expire_tstmp));
/* HTTP/1.1 */
- buffer_copy_string(p->expire_tstmp, "max-age=");
+ buffer_copy_string_len(p->expire_tstmp, CONST_STR_LEN("max-age="));
buffer_append_long(p->expire_tstmp, ts);
response_header_overwrite(srv, con, CONST_STR_LEN("Cache-Control"), CONST_BUF_LEN(p->expire_tstmp));