From 512e859033517ae98756d7af96607337f91610d5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Apr 2024 05:23:07 +0300 Subject: [PATCH] remove chunk attribute, fix getCode object --- src/cli/document/crawl.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {