{"action":"closed","issue":{"url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/134","labels_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/134/comments","events_url":"https://api.github.com/repos/processone/ejabberd-contrib/issues/134/events","html_url":"https://github.com/processone/ejabberd-contrib/issues/134","id":114272764,"number":134,"title":"mod_rest: HTML-IM messages get rejected","user":{"login":"cweiske","id":59036,"avatar_url":"https://avatars.githubusercontent.com/u/59036?v=3","gravatar_id":"","url":"https://api.github.com/users/cweiske","html_url":"https://github.com/cweiske","followers_url":"https://api.github.com/users/cweiske/followers","following_url":"https://api.github.com/users/cweiske/following{/other_user}","gists_url":"https://api.github.com/users/cweiske/gists{/gist_id}","starred_url":"https://api.github.com/users/cweiske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cweiske/subscriptions","organizations_url":"https://api.github.com/users/cweiske/orgs","repos_url":"https://api.github.com/users/cweiske/repos","events_url":"https://api.github.com/users/cweiske/events{/privacy}","received_events_url":"https://api.github.com/users/cweiske/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"badlop","id":96807,"avatar_url":"https://avatars.githubusercontent.com/u/96807?v=3","gravatar_id":"","url":"https://api.github.com/users/badlop","html_url":"https://github.com/badlop","followers_url":"https://api.github.com/users/badlop/followers","following_url":"https://api.github.com/users/badlop/following{/other_user}","gists_url":"https://api.github.com/users/badlop/gists{/gist_id}","starred_url":"https://api.github.com/users/badlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badlop/subscriptions","organizations_url":"https://api.github.com/users/badlop/orgs","repos_url":"https://api.github.com/users/badlop/repos","events_url":"https://api.github.com/users/badlop/events{/privacy}","received_events_url":"https://api.github.com/users/badlop/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-30T13:45:36Z","updated_at":"2015-11-05T12:40:46Z","closed_at":"2015-11-05T12:40:46Z","body":"I'm using ejabberd 15.09 with `mod_rest`. There are no restrictions whatsoever configured for `mod_rest`.\r\n\r\nSending a normal message works fine:\r\n\r\n    $ curl http://example.org:5280/rest/ --data '<message to=\"cweiske@example.org\" from=\"cweiske@example.org\"><body>World</body></message>'\r\n\r\nSending a HTML-IM message fails:\r\n\r\n    $ curl http://example.org:5280/rest/ --data '<message type=\"chat\" to=\"cweiske@example.org\" from=\"cweiske@example.org\"><body>World</body><html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'><p><strong>Hello</strong> World!</p></body></html></message>'\r\n    Error: REST request is rejected by service."}}