SVN: r21072 - trunk/quixote
Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Wed, 12 Mar 2003 09:38:19 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: akuchlin
Date: 2003-03-12 09:38:18 -0500 (Wed, 12 Mar 2003)
New Revision: 21072
Modified:
trunk/quixote/util.py
Log:
Use .set_content_type()
Modified: trunk/quixote/util.py
==============================================================================
--- trunk/quixote/util.py (original)
+++ trunk/quixote/util.py 2003-03-12 09:38:19.000000000 -0500
@@ -90,7 +90,7 @@
def __call__(self, request):
# Set the Content-Type for the response and return the file's contents.
- request.response.set_header('Content-Type', self.mime_type)
+ request.response.set_content_type(self.mime_type)
fsfile = open(self.path, 'rb')
contents = fsfile.read()
fsfile.close()