FreeBSD Bugzilla – Attachment 213871 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]
fix ETag creation
prosody-etag.patch (text/plain), 1.19 KB, created by
Thomas Morper
on 2020-04-27 22:08:22 UTC
(
hide
)
Description:
fix ETag creation
Filename:
MIME Type:
Creator:
Thomas Morper
Created:
2020-04-27 22:08:22 UTC
Size:
1.19 KB
patch
obsolete
>Index: net-im/prosody/Makefile >=================================================================== >--- net-im/prosody/Makefile (revision 533139) >+++ net-im/prosody/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= prosody > PORTVERSION= 0.11.5 >+PORTREVISION= 1 > CATEGORIES= net-im > MASTER_SITES= https://prosody.im/downloads/source/ > >Index: net-im/prosody/files/patch-plugins_mod__http__files.lua >=================================================================== >--- net-im/prosody/files/patch-plugins_mod__http__files.lua (nonexistent) >+++ net-im/prosody/files/patch-plugins_mod__http__files.lua (working copy) >@@ -0,0 +1,11 @@ >+--- plugins/mod_http_files.lua.orig 2020-01-19 15:50:32 UTC >++++ plugins/mod_http_files.lua >+@@ -112,7 +112,7 @@ function serve(opts) >+ 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 = ('"%x-%x-%x"'):format(attr.change 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
Flags:
thomas
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 244618
:
212169
| 213871