diff options
| author | Dan Engelbrecht <[email protected]> | 2026-03-18 22:28:14 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-18 22:28:14 +0100 |
| commit | 59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b (patch) | |
| tree | 0a65fca5537909f41b5f8b0d87daa7dbcd967677 /src/zenhttp/clients/httpclientcpr.h | |
| parent | Update libcurl to 8.19.0 (#862) (diff) | |
| download | zen-59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b.tar.xz zen-59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b.zip | |
improve auth token refresh (#863)
Authentication callbacks are not thread safe, ensured call sites does single threaded calls
Diffstat (limited to 'src/zenhttp/clients/httpclientcpr.h')
| -rw-r--r-- | src/zenhttp/clients/httpclientcpr.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/zenhttp/clients/httpclientcpr.h b/src/zenhttp/clients/httpclientcpr.h index 009e6fb7a..509ca5ae2 100644 --- a/src/zenhttp/clients/httpclientcpr.h +++ b/src/zenhttp/clients/httpclientcpr.h @@ -149,13 +149,13 @@ private: Session& operator=(Session&&) = delete; }; - Session AllocSession(const std::string_view BaseUrl, - const std::string_view Url, - const HttpClientSettings& ConnectionSettings, - const KeyValueMap& AdditionalHeader, - const KeyValueMap& Parameters, - const std::string_view SessionId, - std::optional<HttpClientAccessToken> AccessToken); + Session AllocSession(const std::string_view BaseUrl, + const std::string_view Url, + const HttpClientSettings& ConnectionSettings, + const KeyValueMap& AdditionalHeader, + const KeyValueMap& Parameters, + const std::string_view SessionId, + std::optional<std::string> AccessToken); RwLock m_SessionLock; std::vector<cpr::Session*> m_Sessions; |