From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs327959rvd; Sat, 6 Feb 2010 06:22:43 -0800 (PST) Received-SPF: pass (google.com: domain of 3MXttSw0JCmUMDPHV.D.URVHQJPDLO.FRPUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com designates 10.150.209.12 as permitted sender) client-ip=10.150.209.12; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3MXttSw0JCmUMDPHV.D.URVHQJPDLO.FRPUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com designates 10.150.209.12 as permitted sender) smtp.mail=3MXttSw0JCmUMDPHV.D.URVHQJPDLO.FRPUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com; dkim=pass header.i=3MXttSw0JCmUMDPHV.D.URVHQJPDLO.FRPUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com Received: from mr.google.com ([10.150.209.12]) by 10.150.209.12 with SMTP id h12mr2690665ybg.49.1265466162618 (num_hops = 1); Sat, 06 Feb 2010 06:22:42 -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:date :in-reply-to:x-ip:references:user-agent:x-http-useragent:message-id :subject:from: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:content-transfer-encoding; bh=kDU7aukJz7CYAoWXJ3Yrjr//yaOKSUuj8UM77mVAt78=; b=3+qweDRRC/S+jANue0Ew8504Dx3cnVfJNQT4pUcwv+1n7HYKwureQ1HrD/ly4sX6rW cCBxgUbxIThE3dwpykCKrs12Qm4t+Ydbv/qpX1cdJ+CPfTdnt88BQoICA8uKOYJs/4MB NuxDL18X1x/v8VoB1FugCEy4b5SE7O9S2gvQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:in-reply-to:x-ip :references:user-agent:x-http-useragent:message-id:subject:from: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:content-transfer-encoding; b=LLHY7W0QNQGco384Csq5QUX5k4EsvyPzhAypMdmfxyXNF65iqY6kai2Z7M5wEkTJnG VHcZFdGPkpxJUV2Jv90Vla0ET1cl3+q13Prjecem4DcxIjHs9jmewye0X5E3c8EbQXfC jH+Tktin45HZdbuxHrNMidokqqaNJOp/uWksM= Received: by 10.150.209.12 with SMTP id h12mr154350ybg.49.1265466161382; Sat, 06 Feb 2010 06:22:41 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.91.26.32 with SMTP id d32ls615423agj.1.p; Sat, 06 Feb 2010 06:22:40 -0800 (PST) Received: by 10.91.122.10 with SMTP id z10mr4646136agm.12.1265466160296; Sat, 06 Feb 2010 06:22:40 -0800 (PST) Received: by 10.91.122.10 with SMTP id z10mr4646135agm.12.1265466160268; Sat, 06 Feb 2010 06:22:40 -0800 (PST) Return-Path: Received: from mail-yx0-f157.google.com (mail-yx0-f157.google.com [209.85.210.157]) by gmr-mx.google.com with ESMTP id 25si260759ywh.0.2010.02.06.06.22.40; Sat, 06 Feb 2010 06:22:40 -0800 (PST) Received-SPF: pass (google.com: domain of james.a.rosen@gmail.com designates 209.85.210.157 as permitted sender) client-ip=209.85.210.157; Received: by mail-yx0-f157.google.com with SMTP id 29so13071752yxe.14 for ; Sat, 06 Feb 2010 06:22:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.151.60.12 with SMTP id n12mr157479ybk.7.1265466160235; Sat, 06 Feb 2010 06:22:40 -0800 (PST) Date: Sat, 6 Feb 2010 06:22:40 -0800 (PST) In-Reply-To: <104b9b201002052104r964168kf879ecf0c2763ff4@mail.gmail.com> X-IP: 24.60.202.77 References: <104b9b201002052104r964168kf879ecf0c2763ff4@mail.gmail.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Message-ID: <2c8527a4-bb1e-4c25-93db-8a7e11701137@g28g2000yqh.googlegroups.com> Subject: Re: rack-contrib: add Rack::ContentLength From: Gaius To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of james.a.rosen@gmail.com designates 209.85.210.157 as permitted sender) smtp.mail=james.a.rosen@gmail.com X-Original-Sender: james.a.rosen@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/17aaaa0d0037dc3 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I _knew_ it was somewhere. I have no idea how I overlooked it. Thanks :) On Feb 6, 12:04=A0am, Martin wrote: > Rack::ContentLength exists in core.http://github.com/rack/rack/blob/maste= r/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/77d708727682a25329d... > > and here: > >http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb... > > > As best I could tell, this functionality does not exist elsewhere. If > > it does, please let me know. > >