From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs306880rvd; Sat, 16 Jan 2010 06:02:03 -0800 (PST) Received: from mr.google.com ([10.101.165.32]) by 10.101.165.32 with SMTP id s32mr4653855ano.38.1263650522613 (num_hops = 1); Sat, 16 Jan 2010 06:02:02 -0800 (PST) Received: by 10.101.165.32 with SMTP id s32mr279333ano.38.1263650520934; Sat, 16 Jan 2010 06:02:00 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.223.98.89 with SMTP id p25ls397439fan.2.p; Sat, 16 Jan 2010 06:01:59 -0800 (PST) Received: by 10.223.144.79 with SMTP id y15mr118446fau.16.1263650519414; Sat, 16 Jan 2010 06:01:59 -0800 (PST) Received: by 10.223.144.79 with SMTP id y15mr118445fau.16.1263650519389; Sat, 16 Jan 2010 06:01:59 -0800 (PST) Return-Path: Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by gmr-mx.google.com with ESMTP id 17si177881fxm.11.2010.01.16.06.01.58; Sat, 16 Jan 2010 06:01:58 -0800 (PST) Received-SPF: pass (google.com: domain of m.fellinger@gmail.com designates 209.85.220.209 as permitted sender) client-ip=209.85.220.209; Received: by mail-fx0-f209.google.com with SMTP id 1so1208601fxm.36 for ; Sat, 16 Jan 2010 06:01:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.184.80 with SMTP id x16mr395644hbg.198.1263650518133; Sat, 16 Jan 2010 06:01:58 -0800 (PST) In-Reply-To: <201001161438.53304.ibc@aliax.net> References: <201001161422.28489.ibc@aliax.net> <201001161438.53304.ibc@aliax.net> From: Michael Fellinger Date: Sat, 16 Jan 2010 23:01:38 +0900 Message-ID: <9c00d3e01001160601l62bf274ay6b899ff141c10fec@mail.gmail.com> Subject: Re: Potential Rack-Contrib contributions To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of m.fellinger@gmail.com designates 209.85.220.209 as permitted sender) smtp.mail=m.fellinger@gmail.com; dkim=pass (test mode) header.i=@gmail.com X-Original-Sender: m.fellinger@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/c034955ef1a34475 X-Message-Url: http://groups.google.com/group/rack-devel/msg/705217019263b9b8 Sender: rack-devel@googlegroups.com List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Well for sure we can assume that other Rack middlewwares and also our Rac= k app > would generate a simple inline header value. Then I would rewrite the reg= ex to > this one (the ";" is important): > > =C2=A0HAS_CHARSET =3D /;[\s\t]*charset[\s\t]*=3D[\s\t]*/i "\t" =3D~ /\s/ # 0 means /;\s*charset\s*=3D\s*/i will be enough. 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. --=20 Michael Fellinger CTO, The Rubyists, LLC