mperham / rack-fiber_pool

Rack middleware to execute each request in a Fiber
MIT License
244 stars 24 forks source link

Date HTTP header removed when using Rack::FiberPool middleware #14

Closed jgyllen closed 12 years ago

jgyllen commented 12 years ago

I have a simple Rack middleware that sets the Date header in my Rails app, and as soon as I insert Rack::FiberPool in the middleware stack, the Date header is removed. It works without Rack::FiberPool enabled. I have tried changing the order of the middleware components without any success.

I have gone through the source code and can't find any modifications of the Date header or other headers. I have also tried downgrading rack-fiber_pool to 0.9.1 and rack to 1.2.3 and 1.2.2.

Any ideas on what might be causing this?

jgyllen commented 12 years ago

Ok, I thought I tried ordering the middlewares differently. Apparently, placing Rack::FiberPool at the top of the stack makes the Date header go through.

Still weird that the header is removed if I place Rack::FiberPool after my Date middleware...