Make RackRequest#request_method respect _method

This commit is contained in:
Pratik Naik
2008-07-16 05:01:29 +01:00
parent fea5b6fd41
commit 1d002f6bcb
3 changed files with 66 additions and 4 deletions

View File

@@ -98,10 +98,6 @@ module ActionController #:nodoc:
@env['REMOTE_ADDR']
end
def request_method
@env['REQUEST_METHOD'].downcase.to_sym
end
def server_port
@env['SERVER_PORT'].to_i
end