mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 15:47:32 +02:00
[core] Accept additional "successful" 2xx status codes (#2310)
This commit is contained in:
@@ -160,7 +160,9 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch($errorCode) {
|
switch($errorCode) {
|
||||||
case 200: // Contents received
|
case 200: // Contents OK
|
||||||
|
case 201: // Contents Created
|
||||||
|
case 202: // Contents Accepted
|
||||||
Debug::log('New contents received');
|
Debug::log('New contents received');
|
||||||
$data = substr($data, $headerSize);
|
$data = substr($data, $headerSize);
|
||||||
// Disable caching if the server responds with "Cache-Control: no-cache"
|
// Disable caching if the server responds with "Cache-Control: no-cache"
|
||||||
|
Reference in New Issue
Block a user