joshbuddy / http_router

A kick-ass HTTP router for use in Rack
MIT License
199 stars 45 forks source link

Head fix #5

Closed skade closed 13 years ago

skade commented 13 years ago

Sorry for being short. Sitting on a train.

This fixes the Padrino bug that Requests not hitting a route might return a content-length but not a body.

Accidentally setting the REQUEST_METHOD to HEAD causes Sinatra to delete the body of the response.

http://groups.google.com/group/padrino/browse_thread/thread/09f2ecdc3ac1df9b

joshbuddy commented 13 years ago

i'm already doing this on the rewrite branch, but thank you for pointing it out! btw, take a look at that branch for the latest code.