Re: possible bug in Mason 1.36
"David E. Wheeler" <[email protected]> Sun, 19 Aug 2007 17:32:14 -0700
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Aug 19, 2007, at 09:38, Dave Rolsky wrote:
> I'm not sure what's happening with Bricolage, but I cannot
> reproduce this
> doubled header problem in my tests. Can you provide a simple test
> case? Or
> maybe the problem is that Bricolage has a dhandler which is not
> setting
> the content type explicitly.
Well, we set the content type in Apache, rather than Mason. Our
Apache handler has ($ah is the Mason ApacheHandler):
eval {
# Prevent browsers from caching pages.
$r->no_cache(1);
# Set up the language and content type headers.
$r->content_languages([$lang_name]);
$r->content_type('text/html; charset=' . lc $char_set);
Bric::Util::Pref->use_user_prefs(1);
# Start the database transactions.
begin(1);
# Handle the request.
$status = $ah->handle_request($r);
# Commit the database transactions.
commit(1);
Bric::Util::Pref->use_user_prefs(0);
};
IIRC, we did this so that the dhandlers wouldn't have to, as we have
a lot of dhandlers and, at the time we wrote Bricolage, served
nothing but HTML. So could this be causing the problem? I'd like to
keep the setting of the content-type central like this, if possible.
Thanks,
David
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/