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

[cgiapp] Re: header_props after header_type (was: cgi_minimal compatible?)


On 2003-11-02, Mark Fuller <suppressed> wrote:
> I've been using cgi::application (and html::template) for the last few days.
> Wow, this is the cloest thing to perfection I've seen.
>
> I believe the documentation should note that header_props should be set only
> *after* header_type. I was setting my cookie after creating a session
> tracking object. But, in some cases I would redirect the page later in the
> method. It took me awhile to figure out why my cookie wasn't set. I think
> it's ok to expect me to set the cookie later in my method. But, it would be
> nice if the documentation noted that the header_type must be set first.

Mark,

I believe your finding is incorrect. I wrote a test case to illustrate
that setting header_props before header_type works fine. It's available
as a patch to CGI::App 3.1 here:
http://mark.stosberg.com/Tech/perl/cgiapp_header_type_test.patch

If you continue to feel there is a bug here in the code or docs, I
encourage you to make a modification of my test case that illustrates
it.

	Mark


-- 
http://mark.stosberg.com/ 


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
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.