Skip to content

Commit

Permalink
Replace "orcaslicer" with "superslicer" in client ID and request header
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocraftyone committed Jul 22, 2024
1 parent 6326c0e commit c723414
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
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit c723414

Please sign in to comment.