send Cache-Control next to Expire headers (fixing #350)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@811 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.7
Jan Kneschke 2005-11-01 07:48:04 +00:00
parent 6e424095f2
commit 308e5ce017
1 changed files with 8 additions and 1 deletions

View File

@ -326,8 +326,15 @@ URIHANDLER_FUNC(mod_expire_path_handler) {
}
p->expire_tstmp->used = len + 1;
/* HTTP/1.0 */
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_append_long(p->expire_tstmp, ts);
response_header_overwrite(srv, con, CONST_STR_LEN("Cache-Control"), CONST_BUF_LEN(p->expire_tstmp));
return HANDLER_GO_ON;
}