class Rack::Protection::JsonCsrf

def call(env)

def call(env)
  request               = Request.new(env)
  status, headers, body = app.call(env)
  if has_vector?(request, headers)
    warn env, "attack prevented by #{self.class}"
    react_and_close(env, body) or [status, headers, body]
  else
    [status, headers, body]
  end
end