no dump , logic for update
This commit is contained in:
parent
b439265c25
commit
1e3942f609
2 changed files with 8 additions and 3 deletions
|
@ -366,7 +366,9 @@ function searchWikis($path, $pattern)
|
|||
$responses = Future\awaitAll(array_map(function ($l) use ($httpClient) {
|
||||
return Amp\async(fn () => $httpClient->request(new Request($l['URL'], 'HEAD')));
|
||||
}, $list));
|
||||
var_dump($responses[0]);
|
||||
foreach ($responses[0] as $key => $response) {
|
||||
$list[$key]['STATUS'] = 'ERROR';
|
||||
}
|
||||
foreach ($responses[1] as $key => $response) {
|
||||
$list[$key]['STATUS'] = $response->getStatus() . ' ' . $response->getReason();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue