Software /
code /
prosody-modules
Changeset
3377:683365d370d8
mod_http_upload: Also add CORS headers in response to PUT
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 18 Nov 2018 12:15:02 +0000 |
parents | 3376:972832108c78 |
children | 3378:aefd64629e29 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sun Nov 18 12:06:13 2018 +0000 +++ b/mod_http_upload/mod_http_upload.lua Sun Nov 18 12:15:02 2018 +0000 @@ -231,6 +231,8 @@ -- http service local function upload_data(event, path) + set_cross_domain_headers(event.response); + local uploader = pending_slots[path]; if not uploader then module:log("warn", "Attempt to upload to unknown slot %q", path);