{"action":"closed","issue":{"url":"https://api.github.com/repos/RedHatInsights/vmaas/issues/166","repository_url":"https://api.github.com/repos/RedHatInsights/vmaas","labels_url":"https://api.github.com/repos/RedHatInsights/vmaas/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/RedHatInsights/vmaas/issues/166/comments","events_url":"https://api.github.com/repos/RedHatInsights/vmaas/issues/166/events","html_url":"https://github.com/RedHatInsights/vmaas/issues/166","id":308437929,"number":166,"title":"Wrong Content-Type in repo sync and cve sync response","user":{"login":"mkoura","id":2352619,"avatar_url":"https://avatars1.githubusercontent.com/u/2352619?v=4","gravatar_id":"","url":"https://api.github.com/users/mkoura","html_url":"https://github.com/mkoura","followers_url":"https://api.github.com/users/mkoura/followers","following_url":"https://api.github.com/users/mkoura/following{/other_user}","gists_url":"https://api.github.com/users/mkoura/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoura/subscriptions","organizations_url":"https://api.github.com/users/mkoura/orgs","repos_url":"https://api.github.com/users/mkoura/repos","events_url":"https://api.github.com/users/mkoura/events{/privacy}","received_events_url":"https://api.github.com/users/mkoura/received_events","type":"User","site_admin":false},"labels":[{"id":865902167,"url":"https://api.github.com/repos/RedHatInsights/vmaas/labels/bug","name":"bug","color":"fbca04","default":true}],"state":"closed","locked":false,"assignee":{"login":"ggainey","id":6650611,"avatar_url":"https://avatars3.githubusercontent.com/u/6650611?v=4","gravatar_id":"","url":"https://api.github.com/users/ggainey","html_url":"https://github.com/ggainey","followers_url":"https://api.github.com/users/ggainey/followers","following_url":"https://api.github.com/users/ggainey/following{/other_user}","gists_url":"https://api.github.com/users/ggainey/gists{/gist_id}","starred_url":"https://api.github.com/users/ggainey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggainey/subscriptions","organizations_url":"https://api.github.com/users/ggainey/orgs","repos_url":"https://api.github.com/users/ggainey/repos","events_url":"https://api.github.com/users/ggainey/events{/privacy}","received_events_url":"https://api.github.com/users/ggainey/received_events","type":"User","site_admin":false},"assignees":[{"login":"ggainey","id":6650611,"avatar_url":"https://avatars3.githubusercontent.com/u/6650611?v=4","gravatar_id":"","url":"https://api.github.com/users/ggainey","html_url":"https://github.com/ggainey","followers_url":"https://api.github.com/users/ggainey/followers","following_url":"https://api.github.com/users/ggainey/following{/other_user}","gists_url":"https://api.github.com/users/ggainey/gists{/gist_id}","starred_url":"https://api.github.com/users/ggainey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggainey/subscriptions","organizations_url":"https://api.github.com/users/ggainey/orgs","repos_url":"https://api.github.com/users/ggainey/repos","events_url":"https://api.github.com/users/ggainey/events{/privacy}","received_events_url":"https://api.github.com/users/ggainey/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-26T05:32:43Z","updated_at":"2018-03-29T08:43:27Z","closed_at":"2018-03-29T08:43:27Z","author_association":"NONE","body":"For both ``/api/v1/sync/repo`` and ``/api/v1/sync/cve`` the ``Content-Type`` of the response is ``text/html; charset=UTF-8`` where it should be ``application/json; charset=UTF-8``.\r\n\r\nThe response data is JSON:\r\n```json\r\n{\r\n\t\"success\": true,\r\n\t\"msg\": \"Repo sync task started.\"\r\n}\r\n```\r\n\r\nIt's important to set the Content-Type correctly so automated tools can handle the data contained in the response."}}
{"actor":{"display_login":"MichaelMraka"}}