Mercurial > prosody-modules
diff mod_http_upload/mod_http_upload.lua @ 3379:f1c1f6bc4892
mod_http_upload: Remove extra check for Origin HTTP header
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 18 Nov 2018 18:36:16 +0100 |
parents | aefd64629e29 |
children | 765735bb590b |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sun Nov 18 12:16:47 2018 +0000 +++ b/mod_http_upload/mod_http_upload.lua Sun Nov 18 18:36:16 2018 +0100 @@ -351,9 +351,7 @@ ["PUT /*"] = upload_data; ["OPTIONS /*"] = function (event) - if event.request.headers.origin then - set_cross_domain_headers(event.response); - end + set_cross_domain_headers(event.response); return ""; end; };