Hi

Templetor currently outputs a Content-Type header for each template when 
rendering nested templates. The attached patch causes it to only output one 
such header.

Michael

-- 
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID 91E03AF1
diff --git a/web/template.py b/web/template.py
index 74a9663..12777c9 100644
--- a/web/template.py
+++ b/web/template.py
@@ -835,7 +835,7 @@ class Template(BaseTemplate):
     def __call__(self, *a, **kw):
         import webapi as web
         if 'headers' in web.ctx and self.content_type:
-            web.header('Content-Type', self.content_type)
+            web.header('Content-Type', self.content_type, unique=True)
             
         return BaseTemplate.__call__(self, *a, **kw)
         

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to