]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - html/HTTPResponse.py
Move http/html-related code to html subdirectory
[phdru.name/cgi-bin/blog-ru/search-tags.git] / html / HTTPResponse.py
diff --git a/html/HTTPResponse.py b/html/HTTPResponse.py
new file mode 100644 (file)
index 0000000..4356a8c
--- /dev/null
@@ -0,0 +1,10 @@
+
+from Cheetah.Tools.CGITemplate import CGITemplate
+
+class HTTPResponse(CGITemplate):
+   def cgiHeadersHook(self):
+      return """\
+Content-Type: text/html; charset=koi8-r
+Content-Length: %d
+
+""" % len(str(self))