added last-modified to glusterfs

This commit is contained in:
Unbit
2013-07-29 17:40:06 +02:00
parent 38147d50ff
commit 24ac19e2d6
+2
View File
@@ -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