mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
typo
This commit is contained in:
parent
a1a5378cde
commit
b822958cd1
3 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module Rack
|
||||||
autoload :PathTraversal, 'rack/protection/path_traversal'
|
autoload :PathTraversal, 'rack/protection/path_traversal'
|
||||||
autoload :RemoteReferrer, 'rack/protection/remote_referrer'
|
autoload :RemoteReferrer, 'rack/protection/remote_referrer'
|
||||||
autoload :RemoteToken, 'rack/protection/remote_token'
|
autoload :RemoteToken, 'rack/protection/remote_token'
|
||||||
autoload :SessionHijacking, 'rack/protection/session_hihacking'
|
autoload :SessionHijacking, 'rack/protection/session_hijacking'
|
||||||
autoload :XSSHeader, 'rack/protection/xss_header'
|
autoload :XSSHeader, 'rack/protection/xss_header'
|
||||||
|
|
||||||
def self.new(app, options = {})
|
def self.new(app, options = {})
|
||||||
|
@ -24,7 +24,7 @@ module Rack
|
||||||
use PathTraversal, options unless except.include? :path_traversal
|
use PathTraversal, options unless except.include? :path_traversal
|
||||||
use RemoteReferrer, options unless except.include? :remote_referrer
|
use RemoteReferrer, options unless except.include? :remote_referrer
|
||||||
use RemoteToken, options unless except.include? :remote_token
|
use RemoteToken, options unless except.include? :remote_token
|
||||||
use SessionHijacking, options unless except.include? :session_hihacking
|
use SessionHijacking, options unless except.include? :session_hijacking
|
||||||
use XSSHeader, options unless except.include? :xss_header
|
use XSSHeader, options unless except.include? :xss_header
|
||||||
run app
|
run app
|
||||||
end.to_app
|
end.to_app
|
||||||
|
|
Loading…
Reference in a new issue