diff options
| author | Stefan Boberg <[email protected]> | 2026-03-18 22:41:38 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-18 22:41:38 +0100 |
| commit | d48a83be4e75d5726cbd37274705b1c5ce7e625d (patch) | |
| tree | 208811d25ecabff8a8695544bc93ffd1d0a12fbf /src/zenhttp/clients/httpclientcurl.cpp | |
| parent | Remove IgnoreChildSignals() from zenserver main (diff) | |
| parent | improve auth token refresh (#863) (diff) | |
| download | zen-sb/pipes.tar.xz zen-sb/pipes.zip | |
Merge branch 'main' into sb/pipessb/pipes
Diffstat (limited to 'src/zenhttp/clients/httpclientcurl.cpp')
| -rw-r--r-- | src/zenhttp/clients/httpclientcurl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenhttp/clients/httpclientcurl.cpp b/src/zenhttp/clients/httpclientcurl.cpp index ec9b7bac6..e76157254 100644 --- a/src/zenhttp/clients/httpclientcurl.cpp +++ b/src/zenhttp/clients/httpclientcurl.cpp @@ -290,7 +290,7 @@ HeaderContentType(ZenContentType ContentType) static curl_slist* BuildHeaderList(const HttpClient::KeyValueMap& AdditionalHeader, std::string_view SessionId, - const std::optional<HttpClientAccessToken>& AccessToken, + const std::optional<std::string>& AccessToken, const std::vector<std::pair<std::string, std::string>>& ExtraHeaders = {}) { curl_slist* Headers = nullptr; @@ -309,10 +309,10 @@ BuildHeaderList(const HttpClient::KeyValueMap& AdditionalHeader, Headers = curl_slist_append(Headers, SessionHeader.c_str()); } - if (AccessToken) + if (AccessToken.has_value()) { ExtendableStringBuilder<128> AuthHeader; - AuthHeader << "Authorization: " << AccessToken->Value; + AuthHeader << "Authorization: " << AccessToken.value(); Headers = curl_slist_append(Headers, AuthHeader.c_str()); } |