mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 18:53:49 +00:00
Fix. json encode x-headers
This commit is contained in:
@@ -74,7 +74,7 @@ if freeswitch then
|
||||
function send_mail(headers, address, message, file)
|
||||
local xheaders = "{"
|
||||
for k,v in pairs(headers) do
|
||||
xheaders = xheaders .. ("'%s':'%s',"):format(k, v)
|
||||
xheaders = xheaders .. ('"%s":"%s",'):format(k, v)
|
||||
end
|
||||
xheaders = xheaders:sub(1,-2) .. '}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user