summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/http.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/http.lua')
-rw-r--r--libs/web/luasrc/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua
index 60a3e07228..18112507ce 100644
--- a/libs/web/luasrc/http.lua
+++ b/libs/web/luasrc/http.lua
@@ -339,7 +339,7 @@ function write_json(x)
else
write(tostring(x))
end
- elseif type(x) == "string" then
+ else
write("%q" % tostring(x))
end
end