Open Narigo opened 10 years ago
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.