[tracker/wip/carlosg/sparql1.1: 30/56] libtracker-remote: Ensure we just need the base uri for remote queries



commit 2be2628e955a0dc5aa99700023bc69e26d7d240e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu May 30 12:02:00 2019 +0200

    libtracker-remote: Ensure we just need the base uri for remote queries
    
    The "sparql" POST variable that is sent can be abstracted out, which means
    callers don't need to include it anymore.

 src/libtracker-remote/tracker-remote.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-remote/tracker-remote.vala b/src/libtracker-remote/tracker-remote.vala
index b71ac079f..1f6b62595 100644
--- a/src/libtracker-remote/tracker-remote.vala
+++ b/src/libtracker-remote/tracker-remote.vala
@@ -32,7 +32,7 @@ public class Tracker.Remote.Connection : Tracker.Sparql.Connection {
        }
 
        private Soup.Message create_request (string sparql) {
-               var uri = _base_uri + sparql;
+               var uri = _base_uri + "?query=" + sparql;
                var message = new Soup.Message ("GET", uri);
                var headers = message.request_headers;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]