Merge pull request #68456 from aalexfvk/use_http_1_1_for_external_http_auth

Use HTTP/1.1 for external HTTP authentication
This commit is contained in:
Yakov Olkhovskiy 2024-08-18 14:36:48 +00:00 committed by GitHub
commit 0c14ac782e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,8 @@ public:
Result authenticate(const String & user_name, const String & password) const
{
Poco::Net::HTTPRequest request{Poco::Net::HTTPRequest::HTTP_GET, this->getURI().getPathAndQuery()};
Poco::Net::HTTPRequest request{
Poco::Net::HTTPRequest::HTTP_GET, this->getURI().getPathAndQuery(), Poco::Net::HTTPRequest::HTTP_1_1};
Poco::Net::HTTPBasicCredentials basic_credentials{user_name, password};
basic_credentials.authenticate(request);