changeset 3259 | 64d1dfbd1740 |
parent 3258 | af73963cf1dd |
child 3505 | 1df139b157fb |
--- a/mod_pubsub_post/mod_pubsub_post.lua Fri Aug 24 14:48:59 2018 +0200 +++ b/mod_pubsub_post/mod_pubsub_post.lua Fri Aug 24 14:49:02 2018 +0200 @@ -85,6 +85,10 @@ return 500; end + if not actor then + return 401; + end + if content_type == "application/xml" or content_type:sub(-4) == "+xml" then return handle_xml(path, actor, request.body); elseif content_type == "application/json" or content_type:sub(-5) == "+json" then