Class: Yaframework::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/yaframework/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Request

Returns a new instance of Request.



7
8
9
10
# File 'lib/yaframework/request.rb', line 7

def initialize(env)
  env["PATH_INFO"] = "/" if env["PATH_INFO"].empty?
  super
end