Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 352adda5a9
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.362 kb
require 'warden'
require File.join(File.dirname(__FILE__), 'sinatra_warden', 'sinatra')
Warden::Manager.before_failure do |env, opts|
# Sinatra is very sensitive to the request method
# since authentication could fail on any type of method, we need
# to set it for the failure app so it is routed to the correct block
env['REQUEST_METHOD'] = "POST"
end
Jump to Line
Something went wrong with that request. Please try again.