From eb7c38a49ae11d9084969790f0b86d75cc1f11c7 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 9 Jul 2012 00:13:06 +0000 Subject: Entity tags: set for static respones. --- src/http/modules/ngx_http_mp4_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/modules/ngx_http_mp4_module.c') diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index d3be23420..a216c87ef 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -586,6 +586,10 @@ ngx_http_mp4_handler(ngx_http_request_t *r) r->headers_out.status = NGX_HTTP_OK; r->headers_out.last_modified_time = of.mtime; + if (ngx_http_set_etag(r) != NGX_OK) { + return NGX_HTTP_INTERNAL_SERVER_ERROR; + } + if (ngx_http_set_content_type(r) != NGX_OK) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } -- cgit