[macruby-changes] [4294] ControlTower/trunk/lib/control_tower/vendor/rack/utils.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Jun 26 00:38:10 PDT 2010


Revision: 4294
          http://trac.macosforge.org/projects/ruby/changeset/4294
Author:   joshua.ballanco at apple.com
Date:     2010-06-26 00:38:05 -0700 (Sat, 26 Jun 2010)
Log Message:
-----------
Content-Type does indicate a file upload for us. Reverting this until http://github.com/chneukirchen/rack/issues#issue/12 is fixed.

Modified Paths:
--------------
    ControlTower/trunk/lib/control_tower/vendor/rack/utils.rb

Modified: ControlTower/trunk/lib/control_tower/vendor/rack/utils.rb
===================================================================
--- ControlTower/trunk/lib/control_tower/vendor/rack/utils.rb	2010-06-26 06:27:01 UTC (rev 4293)
+++ ControlTower/trunk/lib/control_tower/vendor/rack/utils.rb	2010-06-26 07:38:05 UTC (rev 4294)
@@ -530,7 +530,7 @@
                 content_type = head[/Content-Type: (.*)#{EOL}/ni, 1]
                 name = head[/Content-Disposition:.*\s+name="?([^\";]*)"?/ni, 1] || head[/Content-ID:\s*([^#{EOL}]*)/ni, 1]
 
-                if filename
+                if content_type || filename
                   body = Tempfile.new("RackMultipart")
                   body.binmode  if body.respond_to?(:binmode)
                 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100626/75f8fa62/attachment.html>


More information about the macruby-changes mailing list