Skip to content

Add more functions for client to work with cookies. #166

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

Merged
merged 1 commit into from
Dec 2, 2014

Conversation

s-panferov
Copy link
Contributor

This is for #155. Please CR.

pub fn apply_to_cookie_jar(&self, jar: &mut CookieJar) {
let &SetCookie(ref cookies) = self;
for cookie in cookies.iter() {
jar.add_original(cookie.clone())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please note that I use add_original here. I do it because the header contains only raw data and:

  1. The data will be corrupted if we will use encrypted or signed jar here.
  2. I can't imagine a situation when we need to use delta to get this changes.

@s-panferov
Copy link
Contributor Author

Hmm. Build was broken by the new rustc nightly.

@s-panferov s-panferov force-pushed the feature/client-cookies branch from 06cb9ed to 9d9008c Compare December 2, 2014 21:14
@s-panferov
Copy link
Contributor Author

Rebased

@seanmonstar
Copy link
Member

nice, could you rebase once more, this PR includes the rust upgrade commit a second time.

@seanmonstar
Copy link
Member

and also with the rebase, squash it into a single commit?

@s-panferov s-panferov force-pushed the feature/client-cookies branch from 9d9008c to 6a8864c Compare December 2, 2014 21:33
@s-panferov
Copy link
Contributor Author

@seanmonstar done.

seanmonstar added a commit that referenced this pull request Dec 2, 2014
Add more functions for client to work with cookies.
@seanmonstar seanmonstar merged commit ad22d79 into hyperium:master Dec 2, 2014
@seanmonstar
Copy link
Member

awesome, thanks!

@s-panferov s-panferov deleted the feature/client-cookies branch December 3, 2014 06:45
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.

3 participants