From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs92806wff; Fri, 20 Nov 2009 00:24:48 -0800 (PST) Received: from mr.google.com ([10.224.43.17]) by 10.224.43.17 with SMTP id u17mr315416qae.22.1258705487779 (num_hops = 1); Fri, 20 Nov 2009 00:24:47 -0800 (PST) Received: by 10.224.43.17 with SMTP id u17mr136387qae.22.1258705486379; Fri, 20 Nov 2009 00:24:46 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.4.33 with SMTP id 33ls1812699qap.0.p; Fri, 20 Nov 2009 00:24:45 -0800 (PST) Received: by 10.224.8.85 with SMTP id g21mr134094qag.26.1258705485128; Fri, 20 Nov 2009 00:24:45 -0800 (PST) Received: by 10.220.77.231 with SMTP id h39mr287644vck.1.1258704366047; Fri, 20 Nov 2009 00:06:06 -0800 (PST) Received: by 10.220.77.231 with SMTP id h39mr287642vck.1.1258704366022; Fri, 20 Nov 2009 00:06:06 -0800 (PST) Return-Path: Received: from mail-gx0-f200.google.com (mail-gx0-f200.google.com [209.85.217.200]) by gmr-mx.google.com with ESMTP id 18si201010yxe.12.2009.11.20.00.06.05; Fri, 20 Nov 2009 00:06:05 -0800 (PST) Received-SPF: fail (google.com: domain of rudra@rsl.ru does not designate 209.85.217.200 as permitted sender) client-ip=209.85.217.200; Authentication-Results: gmr-mx.google.com; spf=hardfail (google.com: domain of rudra@rsl.ru does not designate 209.85.217.200 as permitted sender) smtp.mail=rudra@rsl.ru Received: by mail-gx0-f200.google.com with SMTP id 24so4989963gxk.5 for ; Fri, 20 Nov 2009 00:06:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.49.1 with SMTP id w1mr106815anw.52.1258704365646; Fri, 20 Nov 2009 00:06:05 -0800 (PST) Date: Fri, 20 Nov 2009 00:06:05 -0800 (PST) X-IP: 195.74.82.90 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091030 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 BAVM/1.0.0,gzip(gfe),gzip(gfe) Message-ID: <88c30444-4495-4a0c-9800-d6fd974f498a@f16g2000yqm.googlegroups.com> Subject: Question about parse_multipart() From: beam To: Rack Development Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/80eff8db6d9230f9 X-Message-Url: http://groups.google.com/group/rack-devel/msg/cfa40d2c1be77bd5 List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1 About commit http://github.com/rack/rack/commit/6674f3652ed19136802a0b84f1923f0b78052442 I read RFC? but not understand why we add this lines in lib/rack/ utils.rb: 330+ if content_type || filename 372+ elsif !filename && content_type 373+ body.rewind 374+ 375+ # Generic multipart cases, not coming from a form 376+ data = {:type => content_type, 377+ :name => name, :tempfile => body, :head => head}