Gerrit: Do not pass username to curl for REST requests

It is set in .netrc anyway, and there is a regression in curl that causes
it to fail when passing the user name.

See https://github.com/curl/curl/issues/8653

Change-Id: Ic7aa2d874884db71f71d162486acf4e054eab7e9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2022-08-03 12:02:04 +03:00
committed by Orgad Shaneh
parent 0a2510edcb
commit f8c3d860fc

View File

@@ -120,7 +120,7 @@ QString GerritServer::url(UrlType urlType) const
case Https: protocol = "https"; break; case Https: protocol = "https"; break;
} }
QString res = protocol + "://"; QString res = protocol + "://";
if (type == Ssh || urlType != DefaultUrl) if (type == Ssh || urlType == UrlWithHttpUser)
res += hostArgument(); res += hostArgument();
else else
res += host; res += host;