We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e86f3e6 commit 8d60fccCopy full SHA for 8d60fcc
src/TestReporter/ApiClient.php
@@ -35,7 +35,7 @@ public function send(Entity\JsonFile $json)
35
'http' => array(
36
'method' => 'POST',
37
'header' => array(
38
- 'Host: codeclimate.com',
+ 'Host: ' . parse_url($this->apiHost, PHP_URL_HOST),
39
'Content-Type: application/json',
40
'User-Agent: Code Climate (PHP Test Reporter v' . Version::VERSION . ')',
41
'Content-Length: ' . strlen($payload),
0 commit comments