Fix. json encode x-headers

This commit is contained in:
Alexey Melnichuk
2015-11-27 16:29:52 +03:00
parent 84f3fde716
commit 10aa126495

View File

@@ -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) .. '}'