diff options
author | richard <devnull@localhost> | 2006-07-31 08:51:33 +0000 |
---|---|---|
committer | richard <devnull@localhost> | 2006-07-31 08:51:33 +0000 |
commit | 09644d55c480f1c7ad19b08fc3db5e86dad09202 (patch) | |
tree | b74e1e90ba355e1fbf399c5714f155a2e0d0da7f /pypi.cgi | |
parent | b47585332134f62940633e6283c63f8e4ba80d44 (diff) | |
download | decorator-09644d55c480f1c7ad19b08fc3db5e86dad09202.tar.gz |
fix content-type under mod_python
Diffstat (limited to 'pypi.cgi')
-rwxr-xr-x | pypi.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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") |