summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-12 17:24:29 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-12 18:13:05 -0800
commitdda6e9cf5827ca166194c8baec93e975e02c35e0 (patch)
tree31819d9dafadc4fceee444f443ed61999059881e /app/main.cpp
parent732507db2648e55202a3996c007fb1485703a39b (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>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp3
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(),