lib/http/request.rb in rsence-2.1.7 vs lib/http/request.rb in rsence-2.1.8

- old
+ new

@@ -15,11 +15,16 @@ # Simple Request class, slightly more involved # than the Rack::Request it's extending. class Request < Rack::Request attr_reader :header, :path, :query + class RequestHeader < Hash + def [](key) + super(key.downcase) + end + end def initialize(env) - @header = {} + @header = RequestHeader.new super env2header() @path = path_info() @query = params() end