From bbbd599bc800c82545fea938d73c476e829a7f29 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Tue, 6 Sep 2022 18:40:20 +0500 Subject: [PATCH] fix: do not throw exception on 301-303 http responses (#3014) --- lib/contents.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/contents.php b/lib/contents.php index c1eb5ad5..fdca42c6 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -124,6 +124,11 @@ function getContents( } $cache->saveData($result['body']); break; + case 301: + case 302: + case 303: + // todo: cache + break; case 304: // Not Modified $response['content'] = $cache->loadData();