Sensiolabs webhook doesn't work
Summary
Can't get a webhook working because I can't set a media type.
From the Sensiolabs's documentation:
When requesting an API URL, use this media type:
application/vnd.com.sensiolabs.insight+xml
Steps to reproduce
- Add webhook to GitLab project: https://{USER_UUID}:{API_TOKEN}@insight.sensiolabs.com/api/projects/{PROJECT_UUID}/analyses
- Test webhook
Expected behavior
SensioLabs Insight analyzes the new commit(s).
Actual behaviour
An error message occurs.
Relevant logs and/or screenshots
Hook executed successfully but returned HTTP 406 <!doctype html> <html> <body> <h1>Error 406 / Not Acceptable.</h1> <p>Please repeat your request with this http header: "Accept: application/vnd.com.sensiolabs.insight+xml"</p> <p><a href="https://github.com/sensiolabs/insight">View the repository of the official SDK</a></p> </body> </html>