summaryrefslogtreecommitdiffstats
path: root/src/web_service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-07-10 00:37:14 +0200
committerbunnei <bunneidev@gmail.com>2017-07-12 00:34:30 +0200
commit28c35756790bfad06e339b82c551ab521268561b (patch)
tree2eb47ab96bde081a84c5dd7c8107a21cb8a3511c /src/web_service
parentweb_service: Add CMake flag to enable. (diff)
downloadyuzu-28c35756790bfad06e339b82c551ab521268561b.tar
yuzu-28c35756790bfad06e339b82c551ab521268561b.tar.gz
yuzu-28c35756790bfad06e339b82c551ab521268561b.tar.bz2
yuzu-28c35756790bfad06e339b82c551ab521268561b.tar.lz
yuzu-28c35756790bfad06e339b82c551ab521268561b.tar.xz
yuzu-28c35756790bfad06e339b82c551ab521268561b.tar.zst
yuzu-28c35756790bfad06e339b82c551ab521268561b.zip
Diffstat (limited to 'src/web_service')
-rw-r--r--src/web_service/web_backend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp
index 6d5470157..13e4555ac 100644
--- a/src/web_service/web_backend.cpp
+++ b/src/web_service/web_backend.cpp
@@ -9,6 +9,7 @@
namespace WebService {
+static constexpr char API_VERSION[]{"1"};
static constexpr char ENV_VAR_USERNAME[]{"CITRA_WEB_SERVICES_USERNAME"};
static constexpr char ENV_VAR_TOKEN[]{"CITRA_WEB_SERVICES_TOKEN"};
@@ -44,7 +45,8 @@ void PostJson(const std::string& url, const std::string& data) {
cpr::PostAsync(cpr::Url{url}, cpr::Body{data}, cpr::Header{{"Content-Type", "application/json"},
{"x-username", GetUsername()},
- {"x-token", GetToken()}});
+ {"x-token", GetToken()},
+ {"api-version", API_VERSION}});
}
} // namespace WebService