Commit e0751ca5 authored by Evan Simpson's avatar Evan Simpson

Strip decapitated header values.

parent 55aea706
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""DTML Method objects.""" """DTML Method objects."""
__version__='$Revision: 1.64 $'[11:-2] __version__='$Revision: 1.65 $'[11:-2]
import History import History
from Globals import HTML, DTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
...@@ -424,7 +424,7 @@ def decapitate(html, RESPONSE=None): ...@@ -424,7 +424,7 @@ def decapitate(html, RESPONSE=None):
if RESPONSE is not None: if RESPONSE is not None:
for header in headers: for header in headers:
hkey = header.pop(0) hkey = header.pop(0)
RESPONSE.setHeader(hkey, join(header, ' ')) RESPONSE.setHeader(hkey, ' '.join(header).strip())
return html[spos + 1:] return html[spos + 1:]
default_dm_html="""<dtml-var standard_html_header> default_dm_html="""<dtml-var standard_html_header>
......
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