diff --git a/src/TestReporter/ApiClient.php b/src/TestReporter/ApiClient.php index e647e4c..67f7b6e 100644 --- a/src/TestReporter/ApiClient.php +++ b/src/TestReporter/ApiClient.php @@ -82,7 +82,7 @@ private function sendWithCurl($url, $payload) $curl, CURLOPT_HTTPHEADER, array( - 'Host: codeclimate.com', + 'Host: ' . parse_url($this->apiHost, PHP_URL_HOST), 'Content-Type: application/json', 'User-Agent: Code Climate (PHP Test Reporter v' . Version::VERSION . ')', 'Content-Length: ' . strlen($payload),