Software /
code /
prosody-modules
Diff
mod_http_upload/mod_http_upload.lua @ 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 |
parent | 3376:972832108c78 |
child | 3378:aefd64629e29 |
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);