diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-11-12 17:24:29 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-11-21 15:53:57 -0800 |
commit | a75fe824b9e30478f5a104cebccf15ac728c6571 (patch) | |
tree | d0bebe2d1478cf65cca41e311f645a7a32031c66 | |
parent | fa92408fbb95d6d6ec06ef41e5781216a8133967 (diff) |
tbtnavi: add missing token to websocket connect
Connection to websocket for navigation service was missing token
Bug-AGL: SPEC-2880
Change-Id: I76574ebba935b4491fae19cc8a9161dc610a4921
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index 5ef2e7a..eb7f3f3 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -43,6 +43,9 @@ int main(int argc, char *argv[]) bindingAddress.setHost(QStringLiteral("localhost")); bindingAddress.setPort(port); bindingAddress.setPath(QStringLiteral("/api")); + QUrlQuery query; + query.addQueryItem(QStringLiteral("token"), token); + bindingAddress.setQuery(query); } fprintf(stderr, "[tbtnavi] app_name: %s, port: %d, token: %s.\n", graphic_role.toStdString().c_str(), |