Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Aug 10, 2017
1 parent cb00d24 commit 593b6f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rack/request.rb
Expand Up @@ -98,15 +98,15 @@ def initialize_copy(other)

module Helpers
# The set of form-data media-types. Requests that do not indicate
# one of the media types presents in this list will not be eligible
# one of the media types presented in this list will not be eligible
# for form-data / param parsing.
FORM_DATA_MEDIA_TYPES = [
'application/x-www-form-urlencoded',
'multipart/form-data'
]

# The set of media-types. Requests that do not indicate
# one of the media types presents in this list will not be eligible
# one of the media types presented in this list will not be eligible
# for param parsing like soap attachments or generic multiparts
PARSEABLE_DATA_MEDIA_TYPES = [
'multipart/related',
Expand Down Expand Up @@ -157,10 +157,10 @@ def session_options
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
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
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
Expand Down

0 comments on commit 593b6f9

Please sign in to comment.