mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-21 19:24:47 +02:00
fix: do not throw exception on 301-303 http responses (#3014)
This commit is contained in:
parent
0dab51e26f
commit
bbbd599bc8
1 changed files with 5 additions and 0 deletions
|
@ -124,6 +124,11 @@ function getContents(
|
||||||
}
|
}
|
||||||
$cache->saveData($result['body']);
|
$cache->saveData($result['body']);
|
||||||
break;
|
break;
|
||||||
|
case 301:
|
||||||
|
case 302:
|
||||||
|
case 303:
|
||||||
|
// todo: cache
|
||||||
|
break;
|
||||||
case 304:
|
case 304:
|
||||||
// Not Modified
|
// Not Modified
|
||||||
$response['content'] = $cache->loadData();
|
$response['content'] = $cache->loadData();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue