1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00

fix: do not throw exception on 301-303 http responses (#3014)

This commit is contained in:
Eugene Molotov 2022-09-06 18:40:20 +05:00 committed by GitHub
parent 0dab51e26f
commit bbbd599bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();