sinatra / rack-protection

NOTE: This project has been merged upstream to sinatra/sinatra
https://github.com/sinatra/sinatra/tree/master/rack-protection
818 stars 58 forks source link

Check for nil response on JsonCsrf protection #52

Closed bugant closed 11 years ago

bugant commented 11 years ago

Some reaction do not return a response, think for example drop_session. In that case a nil response will be returned where a rack tuple is expected.

This should fix issue #50

danp commented 11 years ago

Have any plans for a release including this? It'd let me get back to not needing to list rack-protection in my Gemfile which I'd appreciate. :sunglasses: