summaryrefslogtreecommitdiff
path: root/pypi.cgi
diff options
context:
space:
mode:
authorrichard <devnull@localhost>2006-07-31 08:51:33 +0000
committerrichard <devnull@localhost>2006-07-31 08:51:33 +0000
commit09644d55c480f1c7ad19b08fc3db5e86dad09202 (patch)
treeb74e1e90ba355e1fbf399c5714f155a2e0d0da7f /pypi.cgi
parentb47585332134f62940633e6283c63f8e4ba80d44 (diff)
downloaddecorator-09644d55c480f1c7ad19b08fc3db5e86dad09202.tar.gz
fix content-type under mod_python
Diffstat (limited to 'pypi.cgi')
-rwxr-xr-xpypi.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/pypi.cgi b/pypi.cgi
index e5eaeac..630eb6d 100755
--- a/pypi.cgi
+++ b/pypi.cgi
@@ -27,6 +27,8 @@ class RequestWrapper:
self.wfile.write('Status: %s %s\r\n'%(code, message))
def send_header(self, keyword, value):
self.wfile.write("%s: %s\r\n" % (keyword, value))
+ def set_content_type(self, content_type):
+ self.send_header('Content-Type', content_type)
def end_headers(self):
self.wfile.write("\r\n")