diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-12-09 12:08:15 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-12-09 12:08:15 -0600 |
commit | 364b6b3b055f6a7d541bdec872f009a5ba9b190b (patch) | |
tree | 0f87de3c4439d443ade80b7097391bdde4334143 | |
parent | 2ed5a13da5d0af5f958b1b9fc115dfaf7347d7df (diff) | |
download | rack-364b6b3b055f6a7d541bdec872f009a5ba9b190b.tar.gz |
Trim whitespace added in 2ed5a13d
-rw-r--r-- | lib/rack/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb index edc317e2..0b75cb88 100644 --- a/lib/rack/utils.rb +++ b/lib/rack/utils.rb @@ -508,7 +508,7 @@ module Rack MULTIPART_CONTENT_TYPE = /Content-Type: (.*)#{EOL}/ni MULTIPART_CONTENT_DISPOSITION = /Content-Disposition:.*\s+name="?([^\";]*)"?/ni MULTIPART_CONTENT_ID = /Content-ID:([^#{EOL}]*)/ni - + def self.parse_multipart(env) unless env['CONTENT_TYPE'] =~ MULTIPART nil @@ -555,7 +555,7 @@ module Rack if filename && filename !~ /\\[^\\"]/ filename = Utils.unescape(filename).gsub(/\\(.)/, '\1') end - + content_type = head[MULTIPART_CONTENT_TYPE, 1] name = head[MULTIPART_CONTENT_DISPOSITION, 1] || head[MULTIPART_CONTENT_ID, 1] |