Add the content type 'application/sparql-update' to the POST request header before sending the update query to a the SPARQL update endpoint
@@ -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)
