core/modules/rest/src/Tests/RESTTestBase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php index 1e3aca3..185a7e8 100644 --- a/core/modules/rest/src/Tests/RESTTestBase.php +++ b/core/modules/rest/src/Tests/RESTTestBase.php @@ -107,11 +107,10 @@ protected function httpRequest($url, $method, $body = NULL, $mime_type = NULL) { break; case 'HEAD': - $options = isset($body) ? array('absolute' => TRUE, 'query' => $body) : array('absolute' => TRUE); $curl_options = array( CURLOPT_HTTPGET => FALSE, CURLOPT_CUSTOMREQUEST => 'HEAD', - CURLOPT_URL => url($url, $options), + CURLOPT_URL => $url, CURLOPT_NOBODY => TRUE, CURLOPT_HTTPHEADER => array('Accept: ' . $mime_type), );