Browse Source

remove chunk attribute, fix getCode object

gemini
yggverse 9 months ago
parent
commit
512e859033
  1. 5
      src/cli/document/crawl.php

5
src/cli/document/crawl.php

@ -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
{

Loading…
Cancel
Save