-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpEnvironmentProxy fails when proxy URI contains trailing slash #27543
Comments
This looks like a dup of https://github.com/dotnet/corefx/issues/31326, which was fixed by dotnet/corefx#31232 and dotnet/corefx#31327. |
@stephentoub Is the fix in .Net Core 2.1.5? |
I believe so. What version are you using? |
We moved to .Net Core 2.1.5 in PowerShell master branch but @markekraus repo script doesn't work for me and I can not confirm that fix works. |
I found that the fix is in 2.1.5 https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1.5/2.1.5-commits.md#corefx |
Duplicate of #26938. |
On linux, if the
http_proxy
orhttps_proxy
environment variables contain a trailing slash, the proxy will not be used.This can be reproed with PowerShell 6.1.0:
it should be
True
, instead it isFalse
.However, if the trailing slash is removed, TryCreate() works:
The issue appears to be in
GetUriFromString
.Returns a uri
returns null.
The text was updated successfully, but these errors were encountered: