From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs300295rvd; Fri, 5 Feb 2010 21:04:25 -0800 (PST) Received-SPF: pass (google.com: domain of 3V_hsSw0JCgguiz1qv.i2uwv1ouiqt.kwuziks-lm3mtowwotmozw2x0.kwu@groups.bounces.google.com designates 10.220.89.194 as permitted sender) client-ip=10.220.89.194; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3V_hsSw0JCgguiz1qv.i2uwv1ouiqt.kwuziks-lm3mtowwotmozw2x0.kwu@groups.bounces.google.com designates 10.220.89.194 as permitted sender) smtp.mail=3V_hsSw0JCgguiz1qv.i2uwv1ouiqt.kwuziks-lm3mtowwotmozw2x0.kwu@groups.bounces.google.com; dkim=pass header.i=3V_hsSw0JCgguiz1qv.i2uwv1ouiqt.kwuziks-lm3mtowwotmozw2x0.kwu@groups.bounces.google.com Received: from mr.google.com ([10.220.89.194]) by 10.220.89.194 with SMTP id f2mr309005vcm.1.1265432664487 (num_hops = 1); Fri, 05 Feb 2010 21:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; bh=NH4mi+HLuxlIj7zmw2q2S8fuLWbseydKF7jvLMKoTNc=; b=c9HxuXRVZKOnhkKzaKF5p+BNwrEHHo5zWt/e8RWjUevDNsq7M39nH5aI2YoHz2gdct 8j77uuxcyzaMl8A2MDJX7xHZgXiXO/7Lt+0S0g3j3heY/z4DJ55VhKb9cycTFSvo8Hp4 z+PqXeIbFraZRkgDfHfilz7XnbI1fWgDPyXO0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-subscribe:list-unsubscribe:content-type; b=QP4o/8BQG6xDGwf2W7O/RvqV943rDntcxCh0KmTnvUWUUszo1CinBwbHItoMmR2e8j mEC9qC+9xWhxPNPuMgJ3tvde3RVYj64k2UMcOrGFHmRQabxAfBH3b0ANAGhU8zriZ11m XdiNS1k+C8zTS8y27fCjDJRKDKxxLMHOdak4Y= Received: by 10.220.89.194 with SMTP id f2mr25504vcm.1.1265432663256; Fri, 05 Feb 2010 21:04:23 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.220.174.133 with SMTP id t5ls417927vcz.2.p; Fri, 05 Feb 2010 21:04:22 -0800 (PST) Received: by 10.220.64.213 with SMTP id f21mr488412vci.22.1265432661993; Fri, 05 Feb 2010 21:04:21 -0800 (PST) Received: by 10.220.64.213 with SMTP id f21mr488411vci.22.1265432661973; Fri, 05 Feb 2010 21:04:21 -0800 (PST) Return-Path: Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by gmr-mx.google.com with ESMTP id 27si1647457vws.7.2010.02.05.21.04.20; Fri, 05 Feb 2010 21:04:20 -0800 (PST) Received-SPF: pass (google.com: domain of martin.aumont@gmail.com designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50; Received: by wwf26 with SMTP id 26so762094wwf.37 for ; Fri, 05 Feb 2010 21:04:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.89.202 with SMTP id c52mr250462wef.215.1265432660096; Fri, 05 Feb 2010 21:04:20 -0800 (PST) In-Reply-To: References: From: Martin Date: Sat, 6 Feb 2010 00:04:00 -0500 Message-ID: <104b9b201002052104r964168kf879ecf0c2763ff4@mail.gmail.com> Subject: Re: rack-contrib: add Rack::ContentLength To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of martin.aumont@gmail.com designates 74.125.82.50 as permitted sender) smtp.mail=martin.aumont@gmail.com; dkim=pass (test mode) header.i=@gmail.com X-Original-Sender: martin.aumont@gmail.com 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/2994f2855fb3107 X-Message-Url: http://groups.google.com/group/rack-devel/msg/e196b50e0c20cf88 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=UTF-8 Rack::ContentLength exists in core. http://github.com/rack/rack/blob/master/lib/rack/content_length.rb On Fri, Feb 5, 2010 at 8:13 PM, Gaius wrote: > I added a Rack::ContentLength middleware that automatically sets the > "Content-Length" header for responses that (a) lack such a header and > (b) have String bodies. The relevant commits are here: > > http://github.com/jamesarosen/rack-contrib/commit/77d708727682a25329deaa3122fd52a9e78e15df > and here: > http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb3120713254be61d4c58fb > > As best I could tell, this functionality does not exist elsewhere. If > it does, please let me know. >