Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -17,6 +17,7 @@ · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | #include <NetworkAccessManager.h> | 18 | #include <NetworkAccessManager.h> |
| 19 | 19 | ||
| 20 | #include <AccountManager.h> | ||
| 20 | #include "XMLHttpRequestClass.h" | 21 | #include "XMLHttpRequestClass.h" |
| 21 | #include "ScriptEngine.h" | 22 | #include "ScriptEngine.h" |
| 22 | 23 | ||
| @@ -201,6 +202,9 @@ void XMLHttpRequestClass::open(const QString& method, const QString& url, bool a · 178 unmodified lines | |||
| 201 | notImplemented(); | 202 | notImplemented(); |
| 202 | } | 203 | } |
| 203 | } else { | 204 | } else { |
| 205 | if (url.toLower().left(33) == "https://data.highfidelity.io/api/") { | ||
| 206 | _url.setQuery("access_token=" + AccountManager::getInstance().getAccountInfo().getAccessToken().token); | ||
| 207 | } | ||
| 204 | if (!username.isEmpty()) { | 208 | if (!username.isEmpty()) { |
| 205 | _url.setUserName(username); | 209 | _url.setUserName(username); |
| 206 | } | 210 | } |