|
|
|
@ -193,13 +193,12 @@ foreach($index->search('')
@@ -193,13 +193,12 @@ foreach($index->search('')
|
|
|
|
|
$request->getResponse( |
|
|
|
|
$config->cli->document->crawl->connection->timeout, |
|
|
|
|
$config->cli->document->crawl->connection->length, |
|
|
|
|
$config->cli->document->crawl->connection->chunk, |
|
|
|
|
$length |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Begin request |
|
|
|
|
if ($code = $request->getCode()) // @TODO process redirects |
|
|
|
|
if ($code = $response->getCode()) // @TODO process redirects |
|
|
|
|
{ |
|
|
|
|
// Update status code |
|
|
|
|
$data['code'] = $code; |
|
|
|
@ -469,7 +468,7 @@ foreach($index->search('')
@@ -469,7 +468,7 @@ foreach($index->search('')
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Create snap |
|
|
|
|
if ($config->cli->document->crawl->snap->enabled && $request->getCode() === 20) |
|
|
|
|
if ($config->cli->document->crawl->snap->enabled && $response->getCode() === 20) |
|
|
|
|
{ |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|