aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-10 12:18:09 +0200
committerKim Alvefur <zash@zash.se>2023-06-10 12:18:09 +0200
commit57dd3340b03320a68b3f2f5791b28b2cb4aa242a (patch)
treede097ce9a83615eb01dd31870e702d1f38ec48b0 /plugins
parent2d69c8c4eac6c65c03fb61ff73eb1b72c5409375 (diff)
downloadprosody-57dd3340b03320a68b3f2f5791b28b2cb4aa242a.tar.gz
prosody-57dd3340b03320a68b3f2f5791b28b2cb4aa242a.zip
mod_http: Simplify conversion of Set to Array
Avoids the _items semi-private value, that is used everywhere for some reason.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 9e07bbea..e85f4201 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -115,7 +115,7 @@ function moduleapi.http_url(module, app_name, default_path, mode)
end
local function header_set_tostring(header_value)
- return array(pairs(header_value._items)):concat(", ");
+ return array(header_value:items()):concat(", ");
end
local function apply_cors_headers(response, methods, headers, max_age, allow_credentials, allowed_origins, origin)