This project is archived and is in readonly mode.
Rails Metal Pass Through Response Code Should be Configurable
Reported by jduff | June 19th, 2009 @ 01:42 PM | in 3.0.2
I've created a patch for Rails Metal so that the Response Code that is checked to see if the response should continue through the rest of the stack is configurable. You can set it to an array of HTTP Response codes, or just a single one, much like what can be done with Rack::Cascade (http://github.com/rack/rack/blob/fd1c1d2e494d9a7d15e0458602ef121f24...) [credit to Josh Peek for pointing me towards Rack::Cascade]
Anyways, this lets you configure something like 417 to be the pass through response code so your metal can return 404s if you want them to.
Comments and changes to this ticket
-
josh June 20th, 2009 @ 03:51 PM
- Assigned user set to josh
- State changed from new to open
- Milestone cleared.
-
jduff June 30th, 2009 @ 03:25 PM
If anyone wants to use this fix right now I just have the patched class in an initializer exactly as I have attached. Just put this file into /config/initializers and everything should work, when the fix is integrated and you upgrade rails just remove the initializer.
-
josh June 30th, 2009 @ 04:30 PM
I'm still aware of this ticket. I'm waiting on some standardization from other Rack developers until I push it.
http://groups.google.com/group/rack-devel/browse_thread/thread/d37e...
-
Repository July 23rd, 2009 @ 04:21 AM
- State changed from open to resolved
(from [0c68d23f19010379a9320690ca17a26743c8f071]) make pass through error code configurable [#2817 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com
http://github.com/rails/rails/commit/0c68d23f19010379a9320690ca17a2... -
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
Attachments
Tags
Referenced by
- 2817 Rails Metal Pass Through Response Code Should be Configurable (from [0c68d23f19010379a9320690ca17a26743c8f071]) make pa...