Commit 68a746c4 authored by Jim Fulton's avatar Jim Fulton

Commented out Last-Modified header setting because it makes no sense

for methods.

I left the content-sniffer in because it can be overridden with
headers, but I don't like it. :(
parent a62838f4
......@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__='$Revision: 1.18 $'[11:-2]
__version__='$Revision: 1.19 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower
......@@ -158,8 +158,12 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
return self.raise_standardErrorMessage(client, REQUEST)
if RESPONSE is None: return r
RESPONSE.setHeader('Last-Modified', rfc1123_date(self._p_mtime))
# Try to handle content types intelligently...
# This was bad for dynamic content!
# RESPONSE.setHeader('Last-Modified', rfc1123_date(self._p_mtime))
# Ick. I don't like this. But someone can override it with
# a header if they have to.
c, e=guess_content_type(self.__name__, r)
RESPONSE.setHeader('Content-Type', c)
return decapitate(r, RESPONSE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment