lib/rack/utils.rb in rack-1.6.0 vs lib/rack/utils.rb in rack-1.6.1

- old
+ new

@@ -69,10 +69,11 @@ self.key_space_limit = 65536 # The maximum number of parts a request can contain. Accepting too many part # can lead to the server running out of file handles. # Set to `0` for no limit. - self.multipart_part_limit = (ENV['RACK_MULTIPART_LIMIT'] || 128).to_i + # FIXME: RACK_MULTIPART_LIMIT was introduced by mistake and it will be removed in 1.7.0 + self.multipart_part_limit = (ENV['RACK_MULTIPART_PART_LIMIT'] || ENV['RACK_MULTIPART_LIMIT'] || 128).to_i # Stolen from Mongrel, with some small modifications: # Parses a query string by breaking it up at the '&' # and ';' characters. You can also use this to parse # cookies by changing the characters used in the second