Skip to content

Commit

Permalink
Merge pull request #5 from rdf-connect/query-to-update
Browse files Browse the repository at this point in the history
fix: Use `update` instead of `query` parameter for SPARQL request
  • Loading branch information
julianrojas87 authored Jun 25, 2024
2 parents b6a89cc + 7e331fb commit e69fe36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function doSPARQLRequest(query: string, url: string): Promise<void>
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
},
body: `query=${fixedEncodeURIComponent(query)}`
body: `update=${fixedEncodeURIComponent(query)}`
});

if (!res.ok) {
Expand Down

0 comments on commit e69fe36

Please sign in to comment.