Fix IHTTPResult::getHeader/s()
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s() - Fix functionality at various places - Adapt CurlResultTest
This commit is contained in:
@@ -1358,7 +1358,7 @@ class DFRN
|
||||
return -9; // timed out
|
||||
}
|
||||
|
||||
if (($curl_stat == 503) && stristr($postResult->getHeader(), 'retry-after')) {
|
||||
if (($curl_stat == 503) && $postResult->inHeader('retry-after')) {
|
||||
return -10;
|
||||
}
|
||||
|
||||
@@ -1453,7 +1453,7 @@ class DFRN
|
||||
return -9; // timed out
|
||||
}
|
||||
|
||||
if (($curl_stat == 503) && (stristr($postResult->getHeader(), 'retry-after'))) {
|
||||
if (($curl_stat == 503) && $postResult->inHeader('retry-after')) {
|
||||
return -10;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user