diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-27 21:22:04 +0300 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-27 21:22:04 +0300 |
commit | a7f158d1cfdc5c572a62af5a6945e4a6b88e8253 (patch) | |
tree | 8d62fdd9f2fb77d73e9fb70703078b433be28079 /connectiondata.cpp | |
parent | 8214e671ec0e0df90f0b7cfa0304f0b6ac99d189 (diff) | |
download | libquotient-a7f158d1cfdc5c572a62af5a6945e4a6b88e8253.tar.gz libquotient-a7f158d1cfdc5c572a62af5a6945e4a6b88e8253.zip |
Put access token to headers instead of query
Diffstat (limited to 'connectiondata.cpp')
-rw-r--r-- | connectiondata.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectiondata.cpp b/connectiondata.cpp index 9b9b6e04..6ef293cd 100644 --- a/connectiondata.cpp +++ b/connectiondata.cpp @@ -33,7 +33,7 @@ QNetworkAccessManager* getNam() struct ConnectionData::Private { QUrl baseUrl; - QString accessToken; + QByteArray accessToken; QString lastEvent; QString deviceId; @@ -52,7 +52,7 @@ ConnectionData::~ConnectionData() delete d; } -QString ConnectionData::accessToken() const +QByteArray ConnectionData::accessToken() const { return d->accessToken; } @@ -67,7 +67,7 @@ QNetworkAccessManager* ConnectionData::nam() const return getNam(); } -void ConnectionData::setToken(QString token) +void ConnectionData::setToken(QByteArray token) { d->accessToken = token; } |