Sha256: 02c7d98d51b7d89787cc3e630dfbf790b4efc9f80515a765ffbb30afd72e409c
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
# encoding: utf-8 module Hyperdrive module Middleware class Charset def initialize(app) @app = app end def call(env) unless %w(OPTIONS TRACE).include? env['REQUEST_METHOD'] charset = Rack::Accept::Charset.new(env['HTTP_ACCEPT_CHARSET']) Hyperdrive::Utils.enforce_charset!(charset, env['hyperdrive.params']) end @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyperdrive-0.0.22 | lib/hyperdrive/middleware/charset.rb |