From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs116414bkj; Sun, 28 Jun 2009 18:35:00 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.90.90.6 as permitted sender) client-ip=10.90.90.6; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.90.90.6 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.90.90.6]) by 10.90.90.6 with SMTP id n6mr3151158agb.29.1246239299108 (num_hops = 1); Sun, 28 Jun 2009 18:34:59 -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 :mime-version:content-type:received:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=NRDuX3vUmcRqMDMhQm20lw7Sj2sF47bMgp/FVRlJOSA=; b=hJe9HJ6iXNBOHWsOTONtwznOYApYrqopyr5cIUnd8Ak90Mzl9bPOzJvAeVNHwTpv0J H2Zi6vuXCMwULHkC/w4C/0RRKAnMncjqVGcBd15ABszhZZpwKYKAWvlnRXxMnqay0lXd XOjw05hqzPWZWBcafXE+hZcRMKmnA8PWfkLYw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:mime-version:content-type:date:x-ip :user-agent:x-http-useragent:message-id:subject:from:to :x-google-approved:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=by7LmMXocvuU3v9Rnmy58CjUs2kNv5d/tK438lD0hFb4fNYFTEuh0mXojf0Dyg7+s5 Z1xYOR9etyNK/DlOwXjGf4B8CxYULGvAX0fhQ0q5D2u3Z3c3vaCMPdYQfSKtVKitx20K Hl/VzXTNREaFuR5UjoBQHCZbg/M8sbgM3j3hA= Received: by 10.90.90.6 with SMTP id n6mr461342agb.29.1246239298841; Sun, 28 Jun 2009 18:34:58 -0700 (PDT) Received: by 10.176.46.26 with SMTP id t26gr1469yqt.0; Sun, 28 Jun 2009 18:34:48 -0700 (PDT) X-Sender: joe@faithfulgeek.org X-Apparently-To: rack-devel@googlegroups.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Received: by 10.100.8.4 with SMTP id 4mr207644anh.20.1246236963058; Sun, 28 Jun 2009 17:56:03 -0700 (PDT) Date: Sun, 28 Jun 2009 17:56:03 -0700 (PDT) X-IP: 75.39.113.107 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17,gzip(gfe),gzip(gfe) Message-ID: <694b2ab5-2bb7-4d77-8b3c-976dde14eeb7@b14g2000yqd.googlegroups.com> Subject: Rack::Lint - Content-Length is nil in Passenger From: Joe Fiorini To: Rack Development X-Google-Approved: james.britt@gmail.com via email at 2009-06-29 01:34:48 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'm at the starting phase of building a web app using Rack. I'm trying to add in some useful middleware on top of the Lobster demo. I want to ensure my app always matches the spec, so I'm using Rack::Lint. However, this immediately bombs out telling me the Content-Length is nil. My config.ru looks like this: require 'rack' require 'rack/lobster' use Rack::ShowExceptions use Rack::CommonLogger use Rack::ShowStatus use Rack::Lint use Rack::ContentLength run Rack::Lobster.new But even if I take it down to this: require 'rack' require 'rack/lobster' use Rack::Lint use Rack::ContentLength run Rack::Lobster.new it still breaks! I'm running the app on Passenger. It does work, however, if I run straight through the rackup executable. Perhaps Passenger is mangling my env hash? If I take out Rack::Lint and run it (via Passenger), the headers do show a valid Content-Length. Weird, eh? Perplexed, Joe