Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 66039 invoked from network); 22 Sep 2007 21:08:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2007 21:08:11 -0000 Received: (qmail 45368 invoked by uid 500); 22 Sep 2007 21:07:58 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 45346 invoked by uid 500); 22 Sep 2007 21:07:58 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 45335 invoked by uid 99); 22 Sep 2007 21:07:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 14:07:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pharkins@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 21:07:59 +0000 Received: by py-out-1112.google.com with SMTP id a25so2536844pyi for ; Sat, 22 Sep 2007 14:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=6Jf4WvRXNIdsiqAPhzZsGsNe0N5weyRwlVCg64oxIec=; b=qFVe0qhUdxEzI44X5Rd2VbYOPPd2kYJwxzkXJM2axwIfJCR6ic5G6irDIvuHC3jKa93w9ujQ1QYAHdnk2LPsQGXFBIGQ5D5zIKVRX5dpRvIN1x99Ws1x8bHRYCpeqzI9WvqLqISZ8Mv830fMt1PVp8jcIXdtW6wDJNicexl7SbE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VxPBaLx102qyY7RkBZjuF+sd3V5JKOR6xtngX85pzpyR0p7NnPISKmf7nbH2R79RkKKcscrP9iDzpg42Jsf/3pUjruLKUKQfCHfYjWr7n56m/7lOriIYJtsv2V+xxb3IilkW2Q6BRDDPv81ug+3Ok66R9S2aCTpz5qMyKohWLu0= Received: by 10.64.201.7 with SMTP id y7mr9496624qbf.1190495258352; Sat, 22 Sep 2007 14:07:38 -0700 (PDT) Received: by 10.65.204.19 with HTTP; Sat, 22 Sep 2007 14:07:38 -0700 (PDT) Message-ID: <66887a3d0709221407y15b7d876rf8df5a0dd369cee@mail.gmail.com> Date: Sat, 22 Sep 2007 17:07:38 -0400 From: "Perrin Harkins" Sender: pharkins@gmail.com To: "jk jk" Subject: Re: Problem with RequestRec and Headers Cc: modperl@perl.apache.org In-Reply-To: <2913bcb80709211323w27416a06p3c9b0a0134aa1906@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2913bcb80709211323w27416a06p3c9b0a0134aa1906@mail.gmail.com> X-Google-Sender-Auth: a0c0dfc411959bef X-Virus-Checked: Checked by ClamAV on apache.org On 9/21/07, jk jk wrote: > sub printme{ > > my ( $self, $args ) = @_; > > my $r = Apache2::RequestUtil->request; > > $self->{r}->content_type('text/html'); > > print "A Page of Rendered HTML\n"; > } You ask for $r from Apache2::RequestUtil here, but then you don't use it. That looks a bit odd, although not necessarily dangerous. And are you using the prefork MPM? In general, you don't want to put something like a Apache2::RequestRec in a global that will not be gone at the end of the request. It could cause a lot of trouble if you tried to use an old one on a later request. - Perrin