Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace "orcaslicer" with "superslicer" in client ID and request header
Browse files Browse the repository at this point in the history
Ocraftyone committed Jul 22, 2024
1 parent 1ce7877 commit b3ff363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/Utils/SimplyPrint.cpp
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ namespace Slic3r {
static constexpr GUI::HttpServer::port_type CALLBACK_PORT = 21328;
static const std::string CALLBACK_URL = "http://localhost:21328/callback";
static const std::string RESPONSE_TYPE = "code";
static const std::string CLIENT_ID = "simplyprintorcaslicer";
static const std::string CLIENT_ID = "simplyprintsuperslicer";
static const std::string CLIENT_SCOPES = "user.read files.temp_upload";
static const std::string OAUTH_CREDENTIAL_PATH = "simplyprint_oauth.json";
static const std::string TOKEN_URL = URL_BASE_API"/oauth2/Token";
@@ -180,7 +180,7 @@ bool SimplyPrint::do_api_call(std::function<Http(bool)>
const auto create_request = [this, &build_request, &res, &on_complete](const std::string& access_token, bool is_retry) {
auto http = build_request(is_retry);
set_auth(http, access_token);
http.header("User-Agent", "SimplyPrint Orca Plugin")
http.header("User-Agent", "SimplyPrint SuperSlicer Plugin")
.on_complete([&](std::string body, unsigned http_status) {
res = on_complete(body, http_status);
});

0 comments on commit b3ff363

Please sign in to comment.