From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.86.23.1 with SMTP id 1cs146593fgw; Fri, 4 Sep 2009 12:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.115.39.35 as permitted sender) client-ip=10.115.39.35; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.115.39.35 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.115.39.35]) by 10.115.39.35 with SMTP id r35mr6003119waj.1.1252093348609 (num_hops = 1); Fri, 04 Sep 2009 12:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:date:from:to :subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent:reply-to:sender:precedence:x-google-loop:mailing-list :list-id:list-post:list-help:list-unsubscribe:x-beenthere-env :x-beenthere; bh=2IlYc12IsVBejVyYe8bwVhrthm/kPs4s5z1R3/S+sWk=; b=OmQSpltZy8CtVtsC4JfBQ2oT5iHc9OcEVyAs+dLDLTLUiOWIifXAqV0jo6WTXeMQJJ NQYz9lW5ylrZXo3gpE062e72mtdNcksBPma1DRCIbP7yLHL6OqTqdT8ZdInKrXKssQel yZbDnAgDSO+KE5ZWgwOkuxQlp91QJ/gjGa93g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results:date :from:to:subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent:reply-to:sender:precedence:x-google-loop:mailing-list :list-id:list-post:list-help:list-unsubscribe:x-beenthere-env :x-beenthere; b=JZ20ouzp7OebKIOiB6y7hr3LI0O5PwCR+ALThjgq3y5DytQlW5ZUoxKWtxSzz9w1HY 8L+MzPDokSayfBBNE8u4yIGpHYuYetLi7e+s0HKOWa5vVM56eqDf5rEvU/IfCskyou8u 2qf8cr7e96WInToeu8ZwTwmBL3+/QX8qgzd9Y= Received: by 10.115.39.35 with SMTP id r35mr1139209waj.1.1252093348551; Fri, 04 Sep 2009 12:42:28 -0700 (PDT) Received: by 10.107.100.3 with SMTP id c3gr1637prm.0; Fri, 04 Sep 2009 12:42:25 -0700 (PDT) X-Sender: normalperson@yhbt.net X-Apparently-To: rack-devel@googlegroups.com Received: by 10.142.75.5 with SMTP id x5mr1831821wfa.7.1252093343636; Fri, 04 Sep 2009 12:42:23 -0700 (PDT) Received: by 10.142.75.5 with SMTP id x5mr1831820wfa.7.1252093343618; Fri, 04 Sep 2009 12:42:23 -0700 (PDT) Return-Path: Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by gmr-mx.google.com with ESMTP id 25si315340pzk.15.2009.09.04.12.42.23; Fri, 04 Sep 2009 12:42:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) client-ip=64.71.152.64; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) smtp.mail=normalperson@yhbt.net Received: from localhost (unknown [12.186.229.34]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPSA id 2F8881F509; Fri, 4 Sep 2009 19:42:23 +0000 (UTC) Date: Fri, 4 Sep 2009 12:42:22 -0700 From: Eric Wong To: rack-devel@googlegroups.com Subject: Re: CommonLogger (and Clogger) generates strange symbols in the response body Message-ID: <20090904194222.GB29915@dcvr.yhbt.net> References: <200909040102.14378.ibc@aliax.net> <20090904191325.GA29915@dcvr.yhbt.net> <200909042120.47501.ibc@aliax.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200909042120.47501.ibc@aliax.net> User-Agent: Mutt/1.5.18 (2008-05-17) Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com Iñaki Baz Castillo wrote: > El Viernes, 4 de Septiembre de 2009, Eric Wong escribió: > > > > > For performance reasons, the next version of Rack will instead log the > > > > existing "Content-Length" header if one exists, and '-' if it doesn't; > > > > skipping the wrapping of the body[1]. > > > > > > Does it mean that with the next version I would get a non chunked > > > transfer encoded body even if I use CommonLogger? > > > > > Yes, however you might want to load the Rack::ContentLength middleware > > in front of CommonLogger to ensure the length can get logged correctly > > as a result. > > But if I use Clogger then I don't need to add Rack::ContentLength, right? With $body_bytes_sent or $response_length, then no, you don't need to load Rack::ContentLength in front of Clogger. But you can avoid a chunked body if you do load Rack::ContentLength. > Thanks again. No problem! -- Eric Wong