From df6e70e69eae25b2a2194cfd9c4a68b48d1fe6d1 Mon Sep 17 00:00:00 2001 From: elizoller Date: Thu, 27 Aug 2020 17:58:56 +0000 Subject: [PATCH] use existing has function --- src/Flysystem/Adapter/FedoraAdapter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Flysystem/Adapter/FedoraAdapter.php b/src/Flysystem/Adapter/FedoraAdapter.php index 347fa72f..783a9ed0 100644 --- a/src/Flysystem/Adapter/FedoraAdapter.php +++ b/src/Flysystem/Adapter/FedoraAdapter.php @@ -253,8 +253,7 @@ class FedoraAdapter implements AdapterInterface { $headers = [ 'Content-Type' => $this->mimeTypeGuesser->guess($path), ]; - $heads_response = $this->fedora->getResourceHeaders($path); - if (isset($heads_response) && $heads_response->getStatusCode() == 200) { + if ($this->has($path)) { $fedora_url = $path; $date = new DateTime(); $timestamp = $date->format("D, d M Y H:i:s O");