Skip to content

Commit

Permalink
remove mime update on progress function execute #10
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Mar 23, 2024
1 parent 686479e commit b475b4e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cli/document/crawl.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,12 @@ function(
$uploaded
) {
global $config;
global $request;

global $index;
global $document;

if (!$mime = curl_getinfo($request, CURLINFO_CONTENT_TYPE))
{
$mime = $document->get('mime');
}

$index->updateDocument(
[
'mime' => $mime,
'time' => time(),
'code' => 200,
'index' => 0
Expand Down

0 comments on commit b475b4e

Please sign in to comment.