#81 ✓resolved
defunkt

Response should call #to_i on the status, as per the spec.

Reported by defunkt | November 17th, 2009 @ 05:07 AM

http://github.com/defunkt/rack/commit/call_to_i_on_status

The spec says "200 OK" is acceptable (anything that can be to_i'd to a number greater than 100), but Rack::Response can't handle it. Methods such as Rack::Response#ok? depend on an integer.

This patch makes Rack::Response work when initialized with a spec-compliant status object.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages