diff options
| author | David Andreoletti <david.andreoletti.dev@gmail.com> | 2023-01-03 02:16:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-02 19:16:17 +0100 |
| commit | 9b778b39a7759a9c94d5437e1d5f02196bdc9c51 (patch) | |
| tree | 86e9c6cad05e85406233281cfb8a2479cee9ffe3 /rdflib | |
| parent | d803ec3e2e65ae5649cfc67bd2a1e730c44b4fe2 (diff) | |
| download | rdflib-9b778b39a7759a9c94d5437e1d5f02196bdc9c51.tar.gz | |
fix: missing query string params in sparqlconnector when using POST method (#2180)
The SPARQLConnector instance created by a SPARQLStore instance providing endpoint url + query string params using POST method did not append the query string to endpoint url.
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
Diffstat (limited to 'rdflib')
| -rw-r--r-- | rdflib/plugins/stores/sparqlconnector.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rdflib/plugins/stores/sparqlconnector.py b/rdflib/plugins/stores/sparqlconnector.py index 74196ea2..79f9c54a 100644 --- a/rdflib/plugins/stores/sparqlconnector.py +++ b/rdflib/plugins/stores/sparqlconnector.py @@ -117,7 +117,8 @@ class SPARQLConnector(object): ) elif self.method == "POST": args["headers"].update({"Content-Type": "application/sparql-query"}) - qsa = "?" + urlencode(params) + args["params"].update(params) + qsa = "?" + urlencode(args["params"]) try: res = urlopen( Request( |
