lib/jeanine/request.rb in jeanine-0.4.0 vs lib/jeanine/request.rb in jeanine-0.5.0
- old
+ new
@@ -1,7 +1,6 @@
require 'rack/request'
-require 'jeanine/headers'
module Jeanine
class Request < Rack::Request
FORMAT_REGEX = %r{\.(\w+)\z}
@@ -13,13 +12,9 @@
@format = format.captures[0]
env['PATH_INFO'].gsub!(FORMAT_REGEX, '')
end
end
super
- end
-
- def headers
- @headers ||= Jeanine::Headers.new(self)
end
def post?
request_method == 'POST'
end