mod_http_upload: Also add CORS headers in response to PUT
authorMatthew Wild <mwild1@gmail.com>
Sun, 18 Nov 2018 12:15:02 +0000
changeset 3381 683365d370d8
parent 3380 972832108c78
child 3382 aefd64629e29
mod_http_upload: Also add CORS headers in response to PUT
mod_http_upload/mod_http_upload.lua
--- 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);