Mercurial > prosody-modules
diff mod_http_upload/mod_http_upload.lua @ 3446:a5a50cd34386
mod_http_upload: Fix indentation
Who used spaces?!
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Jan 2019 02:16:03 +0100 |
parents | 765735bb590b |
children | b059a3fb2a58 |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Thu Jan 17 19:06:51 2019 +0100 +++ b/mod_http_upload/mod_http_upload.lua Fri Jan 18 02:16:03 2019 +0100 @@ -231,12 +231,12 @@ -- http service local function set_cross_domain_headers(response) - local headers = response.headers; - headers.access_control_allow_methods = "GET, PUT, OPTIONS"; - headers.access_control_allow_headers = "Content-Type"; - headers.access_control_max_age = "7200"; - headers.access_control_allow_origin = response.request.headers.origin or "*"; - return response; + local headers = response.headers; + headers.access_control_allow_methods = "GET, PUT, OPTIONS"; + headers.access_control_allow_headers = "Content-Type"; + headers.access_control_max_age = "7200"; + headers.access_control_allow_origin = response.request.headers.origin or "*"; + return response; end local function upload_data(event, path)