-
Notifications
You must be signed in to change notification settings - Fork 194
getProxy() doesn't handle proxies properly #651
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
Comments
We could also overload |
How? |
Oh, I see! So Nim's |
In the forum thread I had |
oh damn. I can see the confusion, and indeed, it's subtle. Not sure what we could really do here to prevent this mistake. |
The ones preventing this would either impact performance(vtables everywhere) or make it really uncomfortable(disabling the default |
@trialism We have some ideas about how to prevent this without a vtable overhead but this is not the place to discuss it, see nim-lang/RFCs#139 |
Forum thread.
Problematic line.
return newProxy($parsed, auth)
$parsed
will always return with something like:instead of a real URL.
parseUri
is working with real URLs.Choosenim is also affected..
@dom96 lets discuss the solution. I could create a MR with
return newProxy(url, auth)
where url could be prefixed withhttp://
if the scheme was empty in the condition before it.The text was updated successfully, but these errors were encountered: