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

Cookie method can not set more than one cookie per request #51

Closed
nkratzke opened this issue Feb 25, 2014 · 1 comment
Closed

Cookie method can not set more than one cookie per request #51

nkratzke opened this issue Feb 25, 2014 · 1 comment

Comments

@nkratzke
Copy link

Cookie method of Response is not able to set more than one cookie per response.

I think header method is buggy.

  header(String name, [value]) {
    if (value == null) {
      return _response.headers[name];
    }
    _response.headers.set(name, value);
    return this;
  }

should be:

  header(String name, [value]) {
    if (value == null) {
      return _response.headers[name];
    }
    _response.headers.__add__(name, value);
    return this;
  }
@lvivski
Copy link
Owner

lvivski commented Feb 25, 2014

Fixed, thanks!

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

No branches or pull requests

2 participants