diff src/http/ngx_http_core_module.h @ 4746:4a18bf1833a9

Entity tags: clear on entity changes.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 07 Jul 2012 21:22:27 +0000
parents ed3d0cc6de5a
children 192f54280a7a
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.h
+++ b/src/http/ngx_http_core_module.h
@@ -555,5 +555,12 @@ extern ngx_str_t  ngx_http_core_get_meth
         r->headers_out.location = NULL;                                       \
     }
 
+#define ngx_http_clear_etag(r)                                                \
+                                                                              \
+    if (r->headers_out.etag) {                                                \
+        r->headers_out.etag->hash = 0;                                        \
+        r->headers_out.etag = NULL;                                           \
+    }
+
 
 #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */