comparison src/http/modules/ngx_http_static_module.c @ 4748:192f54280a7a

Entity tags: set for static respones.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 09 Jul 2012 00:13:06 +0000
parents 13e09cf11d4e
children b1858fc47e3b
comparison
equal deleted inserted replaced
4747:1e2ac45ad25d 4748:192f54280a7a
218 218
219 r->headers_out.status = NGX_HTTP_OK; 219 r->headers_out.status = NGX_HTTP_OK;
220 r->headers_out.content_length_n = of.size; 220 r->headers_out.content_length_n = of.size;
221 r->headers_out.last_modified_time = of.mtime; 221 r->headers_out.last_modified_time = of.mtime;
222 222
223 if (ngx_http_set_etag(r) != NGX_OK) {
224 return NGX_HTTP_INTERNAL_SERVER_ERROR;
225 }
226
223 if (ngx_http_set_content_type(r) != NGX_OK) { 227 if (ngx_http_set_content_type(r) != NGX_OK) {
224 return NGX_HTTP_INTERNAL_SERVER_ERROR; 228 return NGX_HTTP_INTERNAL_SERVER_ERROR;
225 } 229 }
226 230
227 if (r != r->main && of.size == 0) { 231 if (r != r->main && of.size == 0) {