diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 75d6538..b4d58a3 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -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('') } // Create snap - if ($config->cli->document->crawl->snap->enabled && $request->getCode() === 20) + if ($config->cli->document->crawl->snap->enabled && $response->getCode() === 20) { try {