Fix header conflict

Fix #542
Do not display warning about ssl certificate validation being disabled if not using https

And add a test for that
Fix #1195
Test the headers
Merge pull request #1197 from DataDog/fix_http_check

Fix http check