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

[flutter_tools] use Url path.Context for joining URI #79566

Merged
merged 2 commits into from Apr 1, 2021

Conversation

jonahwilliams
Copy link
Member

This just happens to work on windows, since / is treated as a path joiner as well and the URL always ends with a / so a \ is never appended. Switch to path's URL context to be technically correct.

@flutter-dashboard

This comment has been minimized.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 1, 2021
@google-cla google-cla bot added the cla: yes label Apr 1, 2021
};

// Construct a URL that does not end in a `/`.
await expectLater(() => connectToVmService(Uri.parse('http://localhost:8181/foo')), throwsException);
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this change a \ is appended and then URL encoded into %5c

@jonahwilliams jonahwilliams merged commit e870f5d into flutter:master Apr 1, 2021
@jonahwilliams jonahwilliams deleted the checkout_url_thingy branch April 1, 2021 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants