[PATCH] Rails Metal Pass Through Response Code Should be Configurable
3 views
Skip to first unread message
jd
unread,
Jun 19, 2009, 3:31:23 PM6/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
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. 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.