Skip Menu |

This queue is for tickets about the CGI-Application CPAN distribution.

Report information
The Basics
Id: 68794
Status: open
Priority: 0/
Queue: CGI-Application

People
Owner: Nobody in particular
Requestors: FANY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 4.10
Fixed in: (no value)



Subject: method for resetting headers
When using CGI::Application in conjunction with CGI::Application::FastCGI, any headers I set via ->header_props (e.g., a non-standard „-type“) remain active for later requests which are processed within the same process. So currently I call … delete $self->{__HEADER_PROPS}; … in ->cgiapp_prerun(). I think there should be a documented way to reset the headers, e.g. a ->header_reset() method or something like that. Kind regards, fany
Subject: Re: [rt.cpan.org #68794] method for resetting headers
Date: Mon, 13 Jun 2011 11:41:16 -0400
To: bug-CGI-Application [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
header_props({}) does what you want. I've updated the docs to clarify the the point. Does this address your need sufficiently? https://github.com/markstos/CGI--Application/commit/492d9aa889e6c6accd5553a85cd0bfe0cc5da4cf Mark
Subject: Re: [rt.cpan.org #68794] method for resetting headers
Date: Mon, 13 Jun 2011 20:31:35 +0200
To: "mark [...] summersault.com via RT" <bug-CGI-Application [...] rt.cpan.org>
From: "Martin H. Sluka" <martin [...] sluka.de>
Show quoted text
> header_props({}) does what you want. > > I've updated the docs to clarify the the point. Does this address your > need sufficiently?
Yes; thank you very much for your really quick help! Regards, fany -- ___________________________________________ _ Martin H. Sluka \ mailto:martin@sluka.de / ASCII ribbon ( ) Breite Straße 3 \ tel +49-700-19751024 / campaign - against X D-90552 Röthenbach \-- http://unf.ug ---/ HTML email & vcards / \
Download (untitled)
application/pgp-signature 308b

Message body not shown because it is not plain text.