From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs308241rvd; Sat, 16 Jan 2010 06:47:35 -0800 (PST) Received: from mr.google.com ([10.101.142.33]) by 10.101.142.33 with SMTP id u33mr4760891ann.13.1263653254938 (num_hops = 1); Sat, 16 Jan 2010 06:47:34 -0800 (PST) Received: by 10.101.142.33 with SMTP id u33mr284571ann.13.1263653253255; Sat, 16 Jan 2010 06:47:33 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.213.60.1 with SMTP id n1ls550695ebh.3.p; Sat, 16 Jan 2010 06:47:32 -0800 (PST) Received: by 10.213.55.206 with SMTP id v14mr593863ebg.27.1263653252206; Sat, 16 Jan 2010 06:47:32 -0800 (PST) Received: by 10.213.55.206 with SMTP id v14mr593862ebg.27.1263653252182; Sat, 16 Jan 2010 06:47:32 -0800 (PST) Return-Path: Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.150]) by gmr-mx.google.com with ESMTP id 11si251432ewy.9.2010.01.16.06.47.32; Sat, 16 Jan 2010 06:47:32 -0800 (PST) Received-SPF: neutral (google.com: 74.125.78.150 is neither permitted nor denied by domain of ibc@aliax.net) client-ip=74.125.78.150; Received: by ey-out-1920.google.com with SMTP id 13so385876eye.0 for ; Sat, 16 Jan 2010 06:47:32 -0800 (PST) Received: by 10.213.42.194 with SMTP id t2mr3818232ebe.64.1263653251721; Sat, 16 Jan 2010 06:47:31 -0800 (PST) Return-Path: Received: from ibc-laptop.localnet ([212.230.46.89]) by mx.google.com with ESMTPS id 16sm2446856ewy.10.2010.01.16.06.47.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Jan 2010 06:47:30 -0800 (PST) From: =?utf-8?q?I=C3=B1aki_Baz_Castillo?= To: rack-devel@googlegroups.com Subject: Re: Potential Rack-Contrib contributions Date: Sat, 16 Jan 2010 15:47:26 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.28-16-generic; KDE/4.3.2; x86_64; ; ) References: <201001161438.53304.ibc@aliax.net> <9c00d3e01001160601l62bf274ay6b899ff141c10fec@mail.gmail.com> In-Reply-To: <9c00d3e01001160601l62bf274ay6b899ff141c10fec@mail.gmail.com> MIME-Version: 1.0 Message-Id: <201001161547.26915.ibc@aliax.net> X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.78.150 is neither permitted nor denied by domain of ibc@aliax.net) smtp.mail=ibc@aliax.net X-Original-Sender: ibc@aliax.net 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/c034955ef1a34475 X-Message-Url: http://groups.google.com/group/rack-devel/msg/a1e2f60dee229ddc Sender: rack-devel@googlegroups.com List-Unsubscribe: , List-Subscribe: , Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable El S=C3=A1bado, 16 de Enero de 2010, Michael Fellinger escribi=C3=B3: > > Well for sure we can assume that other Rack middlewwares and also our > > Rack app would generate a simple inline header value. Then I would > > rewrite the regex to this one (the ";" is important): > > > > HAS_CHARSET =3D /;[\s\t]*charset[\s\t]*=3D[\s\t]*/i >=20 > "\t" =3D~ /\s/ > # 0 > means > /;\s*charset\s*=3D\s*/i > will be enough. Right, my fault, normally I use [ \t]* instead of [\s\t]* which makes no se= nse=20 as \s includes space and tabulator. > Regarding the case of Content-Type in the header Hash, as long as it's > an instance of HeaderHash, the case will not matter, we normalize it > behind the scene. ok, that's why I said "in case 2 perhaps I'm wrong" :) Thanks a lot. =2D-=20 I=C3=B1aki Baz Castillo