diff options
Diffstat (limited to 'lib/rack/media_type.rb')
-rw-r--r-- | lib/rack/media_type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/media_type.rb b/lib/rack/media_type.rb index c68df50f..41937c99 100644 --- a/lib/rack/media_type.rb +++ b/lib/rack/media_type.rb @@ -36,7 +36,7 @@ module Rack private def strip_doublequotes(str) - (str[0] == ?" && str[-1] == ?") ? str[1..-2] : str + (str.start_with?('"') && str.end_with?('"')) ? str[1..-2] : str end end end |