Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
3378:aefd64629e29 | 3379:f1c1f6bc4892 |
---|---|
349 ["GET /*"] = serve_uploaded_files; | 349 ["GET /*"] = serve_uploaded_files; |
350 ["HEAD /*"] = serve_head; | 350 ["HEAD /*"] = serve_head; |
351 ["PUT /*"] = upload_data; | 351 ["PUT /*"] = upload_data; |
352 | 352 |
353 ["OPTIONS /*"] = function (event) | 353 ["OPTIONS /*"] = function (event) |
354 if event.request.headers.origin then | 354 set_cross_domain_headers(event.response); |
355 set_cross_domain_headers(event.response); | |
356 end | |
357 return ""; | 355 return ""; |
358 end; | 356 end; |
359 }; | 357 }; |
360 }); | 358 }); |
361 | 359 |