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

Check for wss schemes in Cookie::appropriate_for_url #14722

Merged
merged 3 commits into from Dec 25, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Adds ServoUrl::is_secure_scheme helper

  • Loading branch information
Rohit Burra
Rohit Burra committed Dec 25, 2016
commit 9123fe0cefdba5f92b494d046e07a7810730e0e3
@@ -79,6 +79,11 @@ impl ServoUrl {
self.0.scheme()
}

pub fn is_secure_scheme(&self) -> bool {
let scheme = self.scheme();
scheme == "https" || scheme == "wss"
}

pub fn as_str(&self) -> &str {
self.0.as_str()
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.