-
Notifications
You must be signed in to change notification settings - Fork 251
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
Rack::Test::CookieJar cannot handle multiple 'path' values in the Cookie. #16
Comments
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.
|
* Bugfix for Cookies with multiple paths closes #16 * Fixed spec names
* Bugfix for Cookies with multiple paths closes rack#16 * Fixed spec names
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:The text was updated successfully, but these errors were encountered: