mirror of
https://github.com/open-webui/open-webui
synced 2025-06-12 09:23:05 +00:00
fix: pass header to Tika if PDF_EXTRACT_IMAGES is true
This commit is contained in:
parent
852d9dcbe9
commit
039dec6820
@ -99,6 +99,9 @@ class TikaLoader:
|
|||||||
else:
|
else:
|
||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
|
if self.kwargs.get("PDF_EXTRACT_IMAGES") == True:
|
||||||
|
headers['X-Tika-PDFextractInlineImages'] = 'true'
|
||||||
|
|
||||||
endpoint = self.url
|
endpoint = self.url
|
||||||
if not endpoint.endswith("/"):
|
if not endpoint.endswith("/"):
|
||||||
endpoint += "/"
|
endpoint += "/"
|
||||||
|
Loading…
Reference in New Issue
Block a user