Skip to content

Commit

Permalink
whitespace (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove authored May 25, 2022
1 parent 214023e commit 7605ec3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rack/multipart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ module Multipart
class << self
def parse_multipart(env, params = Rack::Utils.default_query_parser)
io = env[RACK_INPUT]

if content_length = env['CONTENT_LENGTH']
content_length = content_length.to_i
end

content_type = env['CONTENT_TYPE']

tempfile = env[RACK_MULTIPART_TEMPFILE_FACTORY] || Parser::TEMPFILE_FACTORY
bufsize = env[RACK_MULTIPART_BUFFER_SIZE] || Parser::BUFSIZE

info = Parser.parse(io, content_length, content_type, tempfile, bufsize, params)
env[RACK_TEMPFILES] = info.tmp_files

return info.params
end

Expand Down

0 comments on commit 7605ec3

Please sign in to comment.