From 24ac19e2d65deac3a11fe4a8083e05ab43657d22 Mon Sep 17 00:00:00 2001 From: Unbit Date: Mon, 29 Jul 2013 17:40:06 +0200 Subject: [PATCH] added last-modified to glusterfs --- plugins/glusterfs/glusterfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/glusterfs/glusterfs.c b/plugins/glusterfs/glusterfs.c index cd4e5690..6e48a499 100644 --- a/plugins/glusterfs/glusterfs.c +++ b/plugins/glusterfs/glusterfs.c @@ -194,6 +194,8 @@ static int uwsgi_glusterfs_request(struct wsgi_request *wsgi_req) { if (mime_type) { if (uwsgi_response_add_content_type(wsgi_req, mime_type, mime_type_len)) goto end; } + + if (uwsgi_response_add_last_modified(wsgi_req, (uint64_t) st.st_mtime)) goto end; if (uwsgi_response_add_content_length(wsgi_req, st.st_size)) goto end; // skip body on HEAD