mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Remove accept parameter for head/post again
This commit is contained in:
parent
4aeccd3157
commit
04866195b4
12 changed files with 54 additions and 57 deletions
|
@ -169,7 +169,7 @@ class Media
|
|||
// Fetch the mimetype or size if missing.
|
||||
if (empty($media['mimetype']) || empty($media['size'])) {
|
||||
$timeout = DI::config()->get('system', 'xrd_timeout');
|
||||
$curlResult = DI::httpClient()->head($media['url'], HttpClientAccept::DEFAULT, [HttpClientOptions::TIMEOUT => $timeout]);
|
||||
$curlResult = DI::httpClient()->head($media['url'], [HttpClientOptions::TIMEOUT => $timeout]);
|
||||
|
||||
// Workaround for systems that can't handle a HEAD request
|
||||
if (!$curlResult->isSuccess() && ($curlResult->getReturnCode() == 405)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue