Permalink
Browse files

whitespace removal

  • Loading branch information...
1 parent d084a14 commit d0fa93d2f0ce3a242af204107f84fd8d3ef2b675 @rkh rkh committed Dec 12, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/rack/request.rb
View
@@ -118,25 +118,25 @@ def path_info=(s); @env["PATH_INFO"] = s.to_s end
# Checks the HTTP request method (or verb) to see if it was of type DELETE
def delete?; request_method == "DELETE" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type GET
def get?; request_method == "GET" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type HEAD
def head?; request_method == "HEAD" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type OPTIONS
def options?; request_method == "OPTIONS" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type PATCH
def patch?; request_method == "PATCH" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type POST
def post?; request_method == "POST" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type PUT
def put?; request_method == "PUT" end
-
+
# Checks the HTTP request method (or verb) to see if it was of type TRACE
def trace?; request_method == "TRACE" end
@@ -352,7 +352,7 @@ def trusted_proxy?(ip)
def ip
remote_addrs = split_ip_addresses(@env['REMOTE_ADDR'])
remote_addrs = reject_trusted_ip_addresses(remote_addrs)
-
+
return remote_addrs.first if remote_addrs.any?
forwarded_ips = split_ip_addresses(@env['HTTP_X_FORWARDED_FOR'])

0 comments on commit d0fa93d

Please sign in to comment.