Summary of the new feature / enhancement
In WebRequestPSCmdlet.Common.cs line 1399 if we provide a -Uri with no scheme it defaults to http, is this the desired behaviour in 2023? Discussed with Ilya (@iSazonov) in #19162 comments
private static Uri CheckProtocol(Uri uri)
{
ArgumentNullException.ThrowIfNull(uri);
return uri.IsAbsoluteUri ? uri : new Uri("http://" + uri.OriginalString);
}
Test:
$x = Invoke-WebRequest google.com
$x.BaseResponse.RequestMessage.RequestUri.Scheme
#--> http
Proposed technical implementation details (optional)
http --> https
Summary of the new feature / enhancement
In WebRequestPSCmdlet.Common.cs line 1399 if we provide a
-Uriwith no scheme it defaults to http, is this the desired behaviour in 2023? Discussed with Ilya (@iSazonov) in #19162 commentsTest:
Proposed technical implementation details (optional)
http --> https