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

Prev

Check wss scheme in Cookie::appropriate_for_url

  • Loading branch information
Rohit Burra
Rohit Burra committed Dec 25, 2016
commit 3fce260f6e060468fce1b6e8e439c35ab714ec29
@@ -160,7 +160,7 @@ impl Cookie {
}
}

if self.cookie.secure && url.scheme() != "https" {
if self.cookie.secure && !url.is_secure_scheme() {
return false;
}
if self.cookie.httponly && source == CookieSource::NonHTTP {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.