{"action":"closed","issue":{"url":"https://api.github.com/repos/esl/MongooseIM/issues/974","repository_url":"https://api.github.com/repos/esl/MongooseIM","labels_url":"https://api.github.com/repos/esl/MongooseIM/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/esl/MongooseIM/issues/974/comments","events_url":"https://api.github.com/repos/esl/MongooseIM/issues/974/events","html_url":"https://github.com/esl/MongooseIM/issues/974","id":176240594,"number":974,"title":"mod_http_notification doesn't use URL params and doc is missing info","user":{"login":"svarlamov","id":10859025,"avatar_url":"https://avatars.githubusercontent.com/u/10859025?v=3","gravatar_id":"","url":"https://api.github.com/users/svarlamov","html_url":"https://github.com/svarlamov","followers_url":"https://api.github.com/users/svarlamov/followers","following_url":"https://api.github.com/users/svarlamov/following{/other_user}","gists_url":"https://api.github.com/users/svarlamov/gists{/gist_id}","starred_url":"https://api.github.com/users/svarlamov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svarlamov/subscriptions","organizations_url":"https://api.github.com/users/svarlamov/orgs","repos_url":"https://api.github.com/users/svarlamov/repos","events_url":"https://api.github.com/users/svarlamov/events{/privacy}","received_events_url":"https://api.github.com/users/svarlamov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-11T12:03:23Z","updated_at":"2017-01-24T09:12:32Z","closed_at":"2017-01-24T09:12:32Z","body":"MongooseIM version: master at 9c6a3d4\nInstalled from: source\nErlang/OTP version: 18.3\n\n`mod_http_notification` is supposed use the URL query params as outlined in the code with the Content-Type (https://github.com/esl/MongooseIM/blob/master/apps/ejabberd/src/mod_http_notification.erl#L72), but it sends everything in the body of the request as a string:\n\n```\nauthor=user_a&server=localhost&receiver=user_b&message=hello\n```\n\nAlso, the doc doesn't specify the actual names of the fields that are to be sent, and doesn't indicate the format (in body vs. query params).\n\nI'm open to submit a PR for the doc fix, but not sure how to make sure that the params get formatted correctly, inserted into the query URL, as well as how to update the test from there. Thanks for the help!\n"}}
{"actor":{"display_login":"michalwski"}}