You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a difference between req.response().headers().put(...) and req.response().putHeader(...): The former adds values and the latter overrides everything.
For example, I want to add multiple cookies into a request.
I think you make a good point, can you add some tests and possibly a fix? At first glance, we could implement putHeader() so that it delegates to req.response().headers().put(...) and that should work? Do you want me to assign this to you? Btw, this would be only for master, not 1.0.x.
There is a difference between
req.response().headers().put(...)
andreq.response().putHeader(...)
: The former adds values and the latter overrides everything.For example, I want to add multiple cookies into a request.
This implementation works as intended:
While this implementation overwrites all previous cookies:
It would be a lot better if these two methods had either different names or would behave the same way.
The text was updated successfully, but these errors were encountered: