Hello,

I want to send http_headers according to the browser visiting my typo  
app.

I have writen this small piece of code

if @request.env["HTTP_ACCEPT"].index('application/xhtml+xml')
   @headers["Content-Type"] = "application/xhtml+xml; charset=utf-8"
else
   @headers["Content-Type"] = "text/html; charset=utf-8"
end

If I place it in my theme (just before the doctype declaration), it  
seems that typo caches the result (which is not what I want). Any  
clue on where I can put that piece of code to have it send http  
headers without caching them ?

Regards
Frederic

-- 
Frédéric de Villamil
"Quand tu veux chasser une belle fille, il vaut mieux commencer par
draguer sa copine moche" -- précepte de go.
[EMAIL PROTECTED]                        tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com




_______________________________________________
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to