diff options
author | Arnoud Hilhorst <Arnoud.Hilhorst@priva.nl> | 2020-04-24 17:25:59 +0200 |
---|---|---|
committer | Arnoud Hilhorst <Arnoud.Hilhorst@priva.nl> | 2020-04-24 17:25:59 +0200 |
commit | da99d4eea51288a710783021a2c06429cf44a4be (patch) | |
tree | b3d1e872fc6b576fd2d2dc6dee2f1c7338813896 | |
parent | 3f0401dc527ef70abb1f0b76bdd281972ae2655c (diff) | |
download | rdflib-da99d4eea51288a710783021a2c06429cf44a4be.tar.gz |
Add the content type 'application/sparql-update' to the POST request header before sending the update query to a the SPARQL update endpoint
-rw-r--r-- | rdflib/plugins/stores/sparqlconnector.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rdflib/plugins/stores/sparqlconnector.py b/rdflib/plugins/stores/sparqlconnector.py index ee981419..58402c8c 100644 --- a/rdflib/plugins/stores/sparqlconnector.py +++ b/rdflib/plugins/stores/sparqlconnector.py @@ -106,7 +106,10 @@ class SPARQLConnector(object): if default_graph: params["using-graph-uri"] = default_graph - headers = {'Accept': _response_mime_types[self.returnFormat]} + headers = { + 'Accept': _response_mime_types[self.returnFormat], + 'Content-Type': 'application/sparql-update', + } args = dict(self.kwargs) |