From 57dd3340b03320a68b3f2f5791b28b2cb4aa242a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 10 Jun 2023 12:18:09 +0200 Subject: mod_http: Simplify conversion of Set to Array Avoids the _items semi-private value, that is used everywhere for some reason. --- plugins/mod_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3