From 58d016f1cb205f05093385f1f50719db59771d3c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 4 Jun 2024 17:54:06 +0200 Subject: [PATCH] fix more generic request --- pyvckit/document_loader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyvckit/document_loader.py b/pyvckit/document_loader.py index 359c209..9fbf5ef 100644 --- a/pyvckit/document_loader.py +++ b/pyvckit/document_loader.py @@ -80,7 +80,8 @@ def requests_document_loader(secure=False, **kwargs): headers = { 'Accept': 'application/ld+json, application/json' } - response = requests.get(url, headers=headers, **kwargs) + # response = requests.get(url, headers=headers, **kwargs) + response = requests.get(url) content_type = response.headers.get('content-type') if not content_type: