Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails Metal Pass Through Response Code Should be Configurable

#2817

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.

Reported by jduff · June 19th, 2009 @ 01:42 PM

State: resolved
Milestone: 3.0.2
Assigned to: josh josh
Importance: none

Activity

  1. Geoff Longman
  2. josh
    josh
    • Assigned user set to josh
    • State changed from new to open
    • Milestone cleared.

    June 20th, 2009 @ 03:51 PM

  3. Tim Connor
  4. Pedro Belo
  5. jduff
    jduff

    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.

    June 30th, 2009 @ 03:25 PM

  6. josh
    josh

    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...

    June 30th, 2009 @ 04:30 PM

  7. Repository
  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM