[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 think you are correct. Now I believe that I overlayed my header_props by
> setting one property (a cookie) and then setting it again with the
> redirection URL. (I thought that setting the header-type to redirect did it.
> But, it looks like it was setting the redirection URL that caused the cookie
> to be lost). I thought the header_props values could be set incrementally.
> It looks like they have to be set all at once? And that's probably a
> function of CGI.pm. (I'm actually using CGI::Simple).

I would call that a bug or "missing feature" in CGI::App. Someone else
has already identified it and submitted a patch to the maintainer.

We'll hope it appears in a new release soon-- I think the behavior you
expected is the more intuitive one.

If you are already sub-classing CGI::App, you could add a "header_props"
routine to your class that behaves how you expect. 


	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.