From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs165893rvd; Fri, 29 Jan 2010 12:07:35 -0800 (PST) Received-SPF: pass (google.com: domain of 3BUBjSw0JCvMVbdgZnjaorVmZbhVdg.XjhmVXf-YZqZgbjjbgZbmjpkn.Xjh@groups.bounces.google.com designates 10.150.161.2 as permitted sender) client-ip=10.150.161.2; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3BUBjSw0JCvMVbdgZnjaorVmZbhVdg.XjhmVXf-YZqZgbjjbgZbmjpkn.Xjh@groups.bounces.google.com designates 10.150.161.2 as permitted sender) smtp.mail=3BUBjSw0JCvMVbdgZnjaorVmZbhVdg.XjhmVXf-YZqZgbjjbgZbmjpkn.Xjh@groups.bounces.google.com; dkim=pass header.i=3BUBjSw0JCvMVbdgZnjaorVmZbhVdg.XjhmVXf-YZqZgbjjbgZbmjpkn.Xjh@groups.bounces.google.com Received: from mr.google.com ([10.150.161.2]) by 10.150.161.2 with SMTP id j2mr690023ybe.52.1264795654708 (num_hops = 1); Fri, 29 Jan 2010 12:07:34 -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:received-spf:received:mime-version:received:date :x-ip:user-agent:x-http-useragent:message-id:subject:from:to :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=wDYZWBBeYyN5ya3Soo/EBlrzSOG4zqujiWABEbDwwcw=; b=fe4jiH7IxOIptI7SvPUej4UUnqBOta8cA9kVqVuWene0GDNVJdI6Ei8kt72Qx+/RRO dwU4INIvBaAOhdbKAURrcCJtaqnesT4L0UmgNVmHb/eXG6NKQPLiwGqQAulcwLyjvr3Y 7yBRqftFmExSDIfGonAkF4bYW0uT3+CcQkI5U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to: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=zHiAtfhi2LaYcwIplEDTDyTj3Q/dvk4FsZm5pDY2rrIqSv4ogqa8fNTShM136kU3/u GL1y7adE67laiI8sAAfOFQc+WPdYq/XqSTBy3jzqbO30gAJhJsn+kcNSGNHoLcH19B1r DhQTZ/wiFqnO0aYLFb65/8qMuLnvG8QBNBClo= Received: by 10.150.161.2 with SMTP id j2mr33481ybe.52.1264795653172; Fri, 29 Jan 2010 12:07:33 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.150.18.12 with SMTP id 12ls1230372ybr.0.p; Fri, 29 Jan 2010 12:07:31 -0800 (PST) Received: by 10.150.119.22 with SMTP id r22mr1914844ybc.0.1264795651765; Fri, 29 Jan 2010 12:07:31 -0800 (PST) Received: by 10.150.127.5 with SMTP id z5mr1231987ybc.1.1264769822468; Fri, 29 Jan 2010 04:57:02 -0800 (PST) Received: by 10.150.127.5 with SMTP id z5mr1231985ybc.1.1264769822445; Fri, 29 Jan 2010 04:57:02 -0800 (PST) Return-Path: Received: from mail-yw0-f156.google.com (mail-yw0-f156.google.com [209.85.211.156]) by gmr-mx.google.com with ESMTP id 12si236589gxk.14.2010.01.29.04.57.02; Fri, 29 Jan 2010 04:57:02 -0800 (PST) Received-SPF: pass (google.com: domain of agilesoftware@gmail.com designates 209.85.211.156 as permitted sender) client-ip=209.85.211.156; Received: by mail-yw0-f156.google.com with SMTP id 28so3842645ywh.29 for ; Fri, 29 Jan 2010 04:57:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.165.34 with SMTP id s34mr35071ano.28.1264769822392; Fri, 29 Jan 2010 04:57:02 -0800 (PST) Date: Fri, 29 Jan 2010 04:57:02 -0800 (PST) X-IP: 69.164.208.111 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; zh-cn) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10,gzip(gfe),gzip(gfe) Message-ID: <36cbf159-4a8e-4109-b315-5b2fc57a820a@f12g2000yqn.googlegroups.com> Subject: Rack::Lint and Set-Cookie From: agilesoftware To: Rack Development 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/7caad5ec3b4dba4 X-Message-Url: http://groups.google.com/group/rack-devel/msg/34bd4d40d61b10a8 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 in Utils.set_cookie_header!(header, key, value) case header["Set-Cookie"] when Array header["Set-Cookie"] << cookie when String header["Set-Cookie"] = [header["Set-Cookie"], cookie] when nil header["Set-Cookie"] = cookie end but in Rack::Lint: def check_headers(header) header.each { |key, value| ....... assert("a header value must be a String, but the value of " + "'#{key}' is a #{value.class}") { value.kind_of? String } ## consisting of lines (for multiple header values, e.g. multiple ## Set-Cookie values) seperated by "\n". value.split("\n").each { |item| ## The lines must not contain characters below 037. assert("invalid header value #{key}: #{item.inspect}") { item !~ /[\000-\037]/ } } } end So if I have any Set-Cookie header set in my Rack application, Lint will fail.