Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 7b27b6d

Browse files
authored
update sparql accept header to application/json
1 parent 5b926af commit 7b27b6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/index.html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ import requests
11061106
response = requests.get(
11071107
'<SynBioHub URL>/sparql?query=<SPARQL query>',
11081108
headers={
1109-
'Accept': 'text/plain',
1109+
'Accept': 'application/json',
11101110
'X-authorization': '<token>'
11111111
},
11121112
)
@@ -1121,7 +1121,7 @@ const fetch = require("node-fetch");
11211121
const Url = '<SynBioHub URL>/sparql?query=<SPARQL query>'
11221122
const otherPram={
11231123
headers:{
1124-
"content-type" : "text/plain; charset=UTF-8"
1124+
"content-type" : "application/json; charset=UTF-8"
11251125
},
11261126
method:"GET"
11271127
};
@@ -2569,7 +2569,7 @@ import requests
25692569
response = requests.get(
25702570
'<SynBioHub URL>/admin/sparql?query=<SPARQL query>',
25712571
headers={
2572-
'Accept': 'text/plain',
2572+
'Accept': 'application/json',
25732573
'X-authorization': '<token>'
25742574
},
25752575
)

0 commit comments

Comments
 (0)