changeset 3829 | 802087d3155a |
parent 3828 | a0b8ec44a36b |
child 3836 | 0d4146cf9fbc |
--- 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