Commit 4b7cd3ed authored by Jérome Perrin's avatar Jérome Perrin Committed by Rafael Monnerat

jio_ui_test: explicitly set Content-Type header when returning HTML

This is no longer guessed on Zope4
parent ce74f81d
......@@ -7,4 +7,5 @@ assert "WebSite_viewResetPassword" in last_message[2]
message = last_message[2].replace("\n", " ")
for _word in message.split(" "):
if "WebSite_viewResetPassword?reset_key" in _word:
container.REQUEST.REPONSE.setHeader('Content-Type', 'text/html')
return "<a href='%s' name='reset_password'>Reset Password link sent by mail </a>" % _word.strip()
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