Skip to content

Conversation

genotrance
Copy link
Collaborator

Sourced getProxy() from Nimble

Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase so we can verify the tests pass.

let auth =
if parsed.username.len > 0: parsed.username & ":" & parsed.password
else: ""
return newProxy($parsed, auth)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this code odd. Doesn't httpclient provide this logic? If not, I think it should. But we can take care of that later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this isn't in httpclient.nim yet. I know you mentioned this separately as well but I added this to choosenim for the near term.

@genotrance genotrance closed this Jan 11, 2018
@genotrance genotrance reopened this Jan 11, 2018
@dom96 dom96 merged commit 5546995 into dom96:master Jan 11, 2018
@dom96
Copy link
Owner

dom96 commented Jan 11, 2018

This will do for now but I would like it in the stdlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants