From b475b4e61bc2cc827fcb1c9e8fcf5f4a18193881 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 23 Mar 2024 16:21:57 +0200 Subject: [PATCH] remove mime update on progress function execute #10 --- src/cli/document/crawl.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index d91abf2..fe7605a 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -197,19 +197,12 @@ foreach($index->search('') $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