diff options
| author | 2018-09-29 02:51:28 +0200 | |
|---|---|---|
| committer | 2018-10-02 15:30:49 +0200 | |
| commit | ac06105dfe9c7e5306e1f4cac0ee12dc5f72f14e (patch) | |
| tree | 0797733e572350b7be8270942d6576cbbc46e8ba /src/web_service/web_backend.cpp | |
| parent | Review comments - part 3 (diff) | |
| download | yuzu-ac06105dfe9c7e5306e1f4cac0ee12dc5f72f14e.tar.gz yuzu-ac06105dfe9c7e5306e1f4cac0ee12dc5f72f14e.tar.xz yuzu-ac06105dfe9c7e5306e1f4cac0ee12dc5f72f14e.zip | |
Review comments -part 4
Diffstat (limited to 'src/web_service/web_backend.cpp')
| -rw-r--r-- | src/web_service/web_backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp index 5df4df5eb..787b0fbcb 100644 --- a/src/web_service/web_backend.cpp +++ b/src/web_service/web_backend.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace WebService { | 14 | namespace WebService { |
| 15 | 15 | ||
| 16 | constexpr char API_VERSION[]{"1"}; | 16 | constexpr std::array<const char, 1> API_VERSION{'1'}; |
| 17 | 17 | ||
| 18 | constexpr u32 HTTP_PORT = 80; | 18 | constexpr u32 HTTP_PORT = 80; |
| 19 | constexpr u32 HTTPS_PORT = 443; | 19 | constexpr u32 HTTPS_PORT = 443; |
| @@ -70,7 +70,7 @@ Common::WebResult Client::GenericJson(const std::string& method, const std::stri | |||
| 70 | }; | 70 | }; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | params.emplace(std::string("api-version"), std::string(API_VERSION)); | 73 | params.emplace(std::string("api-version"), std::string(API_VERSION.begin(), API_VERSION.end())); |
| 74 | if (method != "GET") { | 74 | if (method != "GET") { |
| 75 | params.emplace(std::string("Content-Type"), std::string("application/json")); | 75 | params.emplace(std::string("Content-Type"), std::string("application/json")); |
| 76 | }; | 76 | }; |