[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] calling header_props multiple times (patch)


I have a need in my CGI::Application modules to call header_props multiple times
in one request.  This currently doesn't work, as a second call to header_props
currently clobbers any previous data.

The following simple patch alters this by merging the data for any repeat calls
to header_props.

I use this functionality for setting Cookies in the cgiapp_prerun hook (for
authentication), but then I may want to call a redirect or change the
content-type later in the code in one of the run modes.

Cees
---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.