Sha256: 844b9db893a94822b45082faa802066b1e95145678c3cf71629ce0e666f0c493
Contents?: true
Size: 363 Bytes
Versions: 9
Compression:
Stored size: 363 Bytes
Contents
module SecureHeaders class Middleware def initialize(app) @app = app end # merges the hash of headers into the current header set. def call(env) req = Rack::Request.new(env) status, headers, response = @app.call(env) headers.merge!(SecureHeaders.header_hash_for(req)) [status, headers, response] end end end
Version data entries
9 entries across 9 versions & 1 rubygems