aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_flv_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-07-09 00:13:06 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-07-09 00:13:06 +0000
commiteb7c38a49ae11d9084969790f0b86d75cc1f11c7 (patch)
tree592bdb9feb92670a494759682153ee6a8eec4de4 /src/http/modules/ngx_http_flv_module.c
parent8b00c87c385ce1b3d231cbafff2bb431acec0953 (diff)
downloadnginx-eb7c38a49ae11d9084969790f0b86d75cc1f11c7.tar.gz
nginx-eb7c38a49ae11d9084969790f0b86d75cc1f11c7.zip
Entity tags: set for static respones.
Diffstat (limited to 'src/http/modules/ngx_http_flv_module.c')
-rw-r--r--src/http/modules/ngx_http_flv_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c
index 03a746803..cc2532027 100644
--- a/src/http/modules/ngx_http_flv_module.c
+++ b/src/http/modules/ngx_http_flv_module.c
@@ -194,6 +194,10 @@ ngx_http_flv_handler(ngx_http_request_t *r)
r->headers_out.content_length_n = len;
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;
}