Skip to content
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

This is a fix for colons in the password of a HTTP Basic Authentication. #55

Merged
merged 2 commits into from
Nov 5, 2018

Conversation

drewmccormack
Copy link
Contributor

The existing code was taking the first component of the colon-separated array as the user name,
and the second as the password. In fact, all components after the first must be treated as belonging
to the password, and joined together with a colon separator.

Fix for #54

The existing code was taking the first component of the colon-separated array as the user name,
and the second as the password. In fact, all components after the first must be treated as belonging
to the password, and joined together with a colon separator.

Fix for Kitura#54
@CLAassistant
Copy link

CLAassistant commented Oct 30, 2018

CLA assistant check
All committers have signed the CLA.

@ianpartridge
Copy link
Collaborator

Thanks for the PR! I think it might be worth reworking this code to use https://developer.apple.com/documentation/swift/string/2894564-split instead of components(). Then we can set maxSplits = 1 and won't have to recombine.

@ianpartridge
Copy link
Collaborator

Fix looks good to me! Are you happy @Andrew-Lees11 ?

@Andrew-Lees11
Copy link
Contributor

This looks good to me as well.

@ianpartridge ianpartridge merged commit b107a6d into Kitura:master Nov 5, 2018
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.

4 participants