[albatross-users] ctx.request.write_header, AppContext, and Content-Types Oh my!

Andrew McNamara andrewm at object-craft.com.au
Mon Feb 17 18:14:07 EST 2003


>I did notice that leaving the line commented out, all the other html
>pages were getting a Content-Type header of text/html, as they should.
>If this is apache doing this, or Albatross I don't know, but sometimes
>you don't questing working code too much.

I'd guess it's the web server - strange though.

>I'd like to request that the AppContext's check for any existing header
>before replacing that header in the next version, or if it is truly safe
>to pull out the Content-Type header as I have done to just do that.  The
>other header I saw being set was the no-cache header, which right now I
>can't see a reason I'd wanna change that, but better safe than sorry and
>allow the app to decide if it need to change the default.

The header stuff has been completely replaced for the next Albatross
release (we needed to be able to set Content-Type also... 8-).

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list