Closed postmodern closed 7 years ago
Tested with rack-1.2.1 and rack-test-0.5.4.
Thanks for the bug report. Can you take a stab at a failing test case? That would help me ensure this stays fixed for all time.
Cheers,
-Bryan
@perlun @junaruga I am not completely sure about the implementation. The RFC seems to be a little ambiguous. See this link and RFC 6265 My reading is that: client should send paths in the right order, but servers should not assume that clients actually do that. Thus we have two options:
While testing a Rack middleware that proxies requests, I noticed that rack-test was giving me the following exception:
The problem stems from
CookieJar#path
assuming the path option will always be a String:The path option is originally generated by
Rack::Utils#parse_query
, which will return an Array if query params are repeated: