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

Issue #1903. Added code to parse the url if valid else return null #3139

Closed
wants to merge 7 commits into from

Conversation

chetankokil
Copy link

Subsystem
ktor-Http

Motivation
issue #1903. Currently the Url parse return valid url when a bogus url is passed.

Solution
Added a function to the Url Companion object, which parse the urlstring and return the valid url if present else returns null instead of appending http://localhost to the invalid url

@e5l e5l requested a review from rsinukov October 10, 2022 11:25
Copy link
Contributor

@rsinukov rsinukov left a comment

Choose a reason for hiding this comment

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

Hi and sorry for a long time to reply. I see that one of the tests that you added does not pass. Can you fix it, please?
Also, name parse is confusing, because it doesn't highlight intended behaviour.

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.

None yet

2 participants