
Redirects should not pass on POST data
Reported by Daniel Lucraft | January 12th, 2009 @ 06:19 AM | in 0.4.1
In the current code, if a POST request is made (to a Rails app), which responds with a redirect, the GET request that is then made includes the same POST data. GET requests should not include POST data, and Rails overrides the query parameters with the POST parameters, causing much confusion.
The commit
http://github.com/songkick/webrat/commit/b671db7a0bf0c87159338809b0...
fixes this.
Comments and changes to this ticket
-
gaffo January 12th, 2009 @ 12:40 PM
- Tag changed from patch, request, session to patch, request, session, test!, verify
Please put in a spec for this.
-
Bryan Helmkamp January 25th, 2009 @ 04:58 PM
- Milestone set to 0.4.1
-
Bryan Helmkamp January 27th, 2009 @ 07:12 PM
- State changed from new to resolved
Hey Daniel,
Thanks for the patch. Applied and resolved.
Cheers,
-Bryan
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.