Prevent crashes when headers are null
Should fix
@@ -43,9 +43,11 @@ local function custom_response(handle, action_params)
if not block_mode then
handle:logDebug("altering the request")
local headers = handle:headers()
+ if type(action_params.headers) == "table" then
for k, v in pairs(action_params.headers) do
headers:replace(k, v)
end
+ end
return
end
