# HG changeset patch # User Kim Alvefur # Date 1686392289 -7200 # Node ID 7a6874f9fd4050756558a7c53ec170b38ff0fec6 # Parent b417a49cc31b68680515ee99e1acf4548546db8d mod_http: Simplify conversion of Set to Array Avoids the _items semi-private value, that is used everywhere for some reason. diff -r b417a49cc31b -r 7a6874f9fd40 plugins/mod_http.lua --- a/plugins/mod_http.lua Fri May 14 05:49:35 2021 +0200 +++ b/plugins/mod_http.lua Sat Jun 10 12:18:09 2023 +0200 @@ -115,7 +115,7 @@ 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)