diff --git a/libs/common/include/launchdarkly/config/shared/builders/http_properties_builder.hpp b/libs/common/include/launchdarkly/config/shared/builders/http_properties_builder.hpp index a152d2828..afd83ff6e 100644 --- a/libs/common/include/launchdarkly/config/shared/builders/http_properties_builder.hpp +++ b/libs/common/include/launchdarkly/config/shared/builders/http_properties_builder.hpp @@ -201,7 +201,10 @@ class HttpPropertiesBuilder { */ template , int> = 0> - HttpPropertiesBuilder& HttpProxy(std::string http_proxy); + HttpPropertiesBuilder& HttpProxy(std::string http_proxy) { + http_proxy_ = std::move(http_proxy); + return *this; + } [[nodiscard]] built::HttpProperties Build() const; diff --git a/libs/common/src/config/http_properties_builder.cpp b/libs/common/src/config/http_properties_builder.cpp index 3fde4038b..f4081c3dc 100644 --- a/libs/common/src/config/http_properties_builder.cpp +++ b/libs/common/src/config/http_properties_builder.cpp @@ -121,14 +121,6 @@ HttpPropertiesBuilder& HttpPropertiesBuilder::Tls( return *this; } -template -template , int>> -HttpPropertiesBuilder& HttpPropertiesBuilder::HttpProxy( - std::string http_proxy) { - http_proxy_ = std::move(http_proxy); - return *this; -} - static std::optional HttpProxyFromEnv() { if (char const* http_proxy = std::getenv("http_proxy")) { if (strlen(http_proxy) > 0) {