default to empty string if nil map lookup in css map

This commit is contained in:
Thomas Lynch
2024-10-21 18:14:53 +11:00
parent f6e1adf1c5
commit 6643e3f7db

View File

@ -128,7 +128,7 @@ function _M.view(applet)
local ls = locales_strings[lang]
-- get any custom css
local css_val = css_map:lookup(host)
local css_val = css_map:lookup(host) or ""
-- set response body and declare status code
local response_body = ""