mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Catch TransferExceptions for HTTPClient::finalUrl() in case the headers are empty
This commit is contained in:
parent
e88c12d958
commit
b76634ea0c
3 changed files with 11 additions and 3 deletions
|
@ -220,7 +220,7 @@ class HTTPClient implements IHTTPClient
|
|||
$urlResult = $this->resolver->resolveURL($url);
|
||||
|
||||
if ($urlResult->didErrorOccur()) {
|
||||
throw new TransferException($urlResult->getErrorMessageString());
|
||||
throw new TransferException($urlResult->getErrorMessageString(), $urlResult->getHTTPStatusCode());
|
||||
}
|
||||
|
||||
return $urlResult->getURL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue