# HG changeset patch # User Anton Shestakov # Date 1468072537 -28800 # Node ID 88a0a947e58c591ba2575f02e2eb4461cdf33fe9 # Parent c415a3fd4485895551416f1069478004e6c3e86f mod_http_files: send valid ETag header RFC 2616 section 14 (header field definitions) shows that ETag header content should be wrapped in double quotes. diff -r c415a3fd4485 -r 88a0a947e58c plugins/mod_http_files.lua --- a/plugins/mod_http_files.lua Sat Jul 09 17:33:38 2016 +0800 +++ b/plugins/mod_http_files.lua Sat Jul 09 21:55:37 2016 +0800 @@ -109,7 +109,7 @@ local last_modified = os_date('!%a, %d %b %Y %H:%M:%S GMT', attr.modification); response_headers.last_modified = last_modified; - local etag = ("%02x-%x-%x-%x"):format(attr.dev or 0, attr.ino or 0, attr.size or 0, attr.modification or 0); + local etag = ('"%02x-%x-%x-%x"'):format(attr.dev or 0, attr.ino or 0, attr.size or 0, attr.modification or 0); response_headers.etag = etag; local if_none_match = request_headers.if_none_match