Unverified Commit d6d33f2b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3541053 by andypost: Fix deprecated curl_close() for PHP 8.5

(cherry picked from commit 7497a374)
parent ad6d4462
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -651,7 +651,6 @@ protected function getHeaders($url) {
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_USERAGENT, drupal_generate_test_ua($this->databasePrefix));
    $output = curl_exec($ch);
    curl_close($ch);

    $headers = [];
    foreach (explode("\n", $output) as $header) {