fix more generic request
This commit is contained in:
parent
2f13c00dcd
commit
58d016f1cb
|
@ -80,7 +80,8 @@ def requests_document_loader(secure=False, **kwargs):
|
||||||
headers = {
|
headers = {
|
||||||
'Accept': 'application/ld+json, application/json'
|
'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')
|
content_type = response.headers.get('content-type')
|
||||||
if not content_type:
|
if not content_type:
|
||||||
|
|
Loading…
Reference in New Issue