diff --git a/src/HttpsClient.cpp b/src/HttpsClient.cpp index 80f5843080..5b9215cab6 100644 --- a/src/HttpsClient.cpp +++ b/src/HttpsClient.cpp @@ -363,7 +363,7 @@ void HttpsClient::httpsGet( client->httpsGet(deqSites, timeout, complete); } -bool HttpsClient::httpsParseUrl(const std::string strUrl, std::string& strDomain, std::string& strPath) +bool HttpsClient::httpsParseUrl(const std::string& strUrl, std::string& strDomain, std::string& strPath) { static boost::regex reUrl("(?i)\\`\\s*https://([^/]+)(/.*)\\s*\\'"); // https://DOMAINPATH diff --git a/src/HttpsClient.h b/src/HttpsClient.h index 6370065164..930ffeaad3 100644 --- a/src/HttpsClient.h +++ b/src/HttpsClient.h @@ -86,7 +86,7 @@ public: boost::posix_time::time_duration timeout, boost::function complete); - static bool httpsParseUrl(const std::string strUrl, std::string& strDomain, std::string& strPath); + static bool httpsParseUrl(const std::string& strUrl, std::string& strDomain, std::string& strPath); }; #endif // vim:ts=4