}
$head = (new HTTPClient())->head($url);
$headers = $head->getHeader();
+ $headers = array_change_key_case($headers, CASE_LOWER);
}
return $headers['content-length'] ?: false;
} catch (Exception $err) {
}
$head = (new HTTPClient())->head($url);
$headers = $head->getHeader();
+ $headers = array_change_key_case($headers, CASE_LOWER);
}
return !empty($headers['content-type']) && common_get_mime_media($headers['content-type']) === 'image';
}
$head = (new HTTPClient())->head($url);
$headers = $head->getHeader();
+ $headers = array_change_key_case($headers, CASE_LOWER);
try {
$isImage = $this->isRemoteImage($url, $headers);