From 0efa58f2981eff943ad7e96a30e6a1cc209105b9 Mon Sep 17 00:00:00 2001 From: beu Date: Mon, 18 Apr 2022 22:34:21 +0200 Subject: [PATCH] Fix in case of the website is unreachable --- core/Files/AsyncHttpRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Files/AsyncHttpRequest.php b/core/Files/AsyncHttpRequest.php index ae188552..6dbe1d4b 100644 --- a/core/Files/AsyncHttpRequest.php +++ b/core/Files/AsyncHttpRequest.php @@ -118,6 +118,7 @@ class AsyncHttpRequest implements UsageInformationAble { $request->addListener('complete', function (Event $event) { $error = null; $content = null; + $headers = null; if ($event->response->hasError()) { $error = $event->response->getError()->getMessage(); } else {