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