View | Details | Raw Unified | Return to bug 244618 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/net-im/prosody/files/patch-plugins_mod__http__files.lua (+11 lines)
Line 0 Link Here
1
--- plugins/mod_http_files.lua	2020-01-02 12:49:37.000000000 +0300
2
+++ plugins/mod_http_files.lua	2020-03-06 00:54:03.347542000 +0300
3
@@ -112,7 +112,7 @@
4
 		local last_modified = os_date('!%a, %d %b %Y %H:%M:%S GMT', attr.modification);
5
 		response_headers.last_modified = last_modified;
6
 
7
-		local etag = ('"%02x-%x-%x-%x"'):format(attr.dev or 0, attr.ino or 0, attr.size or 0, attr.modification or 0);
8
+		local etag = ('"%02x-%x-%x-%x"'):format(math.abs(attr.dev or 0), attr.ino or 0, attr.size or 0, attr.modification or 0);
9
 		response_headers.etag = etag;
10
 
11
 		local if_none_match = request_headers.if_none_match

Return to bug 244618