We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to pass a mongodb:// url with a password that contains an @ symbol like this one:
mongodb://joeshmo:password%40@127.0.0.1:27017
the server init is not decoding percent characted when extracting user and password from url
public convenience init(_ url: NSURL, using tcpDriver: MongoTCP.Type = Socks.TCPClient.self, automatically connecting: Bool = true) throws
Using removingPercentEncoding fixed my issue:
removingPercentEncoding
if let user = url.user?.removingPercentEncoding, let pass = url.password?.removingPercentEncoding
The text was updated successfully, but these errors were encountered:
The latest MongoKitten 2 version has this implemented now. Feel free to close the issue if it's working for you :)
Sorry, something went wrong.
No branches or pull requests
I tried to pass a mongodb:// url with a password that contains an @ symbol like this one:
the server init is not decoding percent characted when extracting user and password from url
Using
removingPercentEncoding
fixed my issue:The text was updated successfully, but these errors were encountered: