author | Kim Alvefur <zash@zash.se> |
Thu, 02 Jan 2020 09:59:31 +0100 | |
changeset 3829 | 802087d3155a |
parent 3828 | a0b8ec44a36b |
child 3830 | 21ffca4d3aae |
--- a/mod_rest/mod_rest.lua Thu Jan 02 09:57:49 2020 +0100 +++ b/mod_rest/mod_rest.lua Thu Jan 02 09:59:31 2020 +0100 @@ -25,7 +25,7 @@ end local function parse(mimetype, data) - mimetype = mimetype:match("^[^; ]*"); + mimetype = mimetype and mimetype:match("^[^; ]*"); if mimetype == "application/xmpp+xml" then return xml.parse(data); elseif mimetype == "application/json" then