FreeBSD Bugzilla – Attachment 212169 Details for
Bug 244618
net-im/prosody: Fix http files download
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
prosody_http_files.patch (text/plain), 959 bytes, created by
Ivan Rozhuk
on 2020-03-05 22:47:05 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2020-03-05 22:47:05 UTC
Size:
959 bytes
patch
obsolete
>Index: /usr/ports/net-im/prosody/files/patch-plugins_mod__http__files.lua >=================================================================== >--- /usr/ports/net-im/prosody/files/patch-plugins_mod__http__files.lua (nonexistent) >+++ /usr/ports/net-im/prosody/files/patch-plugins_mod__http__files.lua (working copy) >@@ -0,0 +1,11 @@ >+--- plugins/mod_http_files.lua 2020-01-02 12:49:37.000000000 +0300 >++++ plugins/mod_http_files.lua 2020-03-06 00:54:03.347542000 +0300 >+@@ -112,7 +112,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(math.abs(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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244618
:
212169
|
213871