class Rack::HttpTraceRejector
Constants
- VERSION
Public Class Methods
new(app)
click to toggle source
# File lib/rack/http_trace_rejector.rb, line 7 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack/http_trace_rejector.rb, line 11 def call(env) req = Rack::Request.new(env) return [405, {}, []] if req.request_method == "TRACE" @app.call(env) end