Commit 75c0fa2e authored by Jérome Perrin's avatar Jérome Perrin

jio_ui_test: explicitly set Content-Type header when returning HTML

This is no longer guessed on Zope4
parent 1435a5a2
Pipeline #26695 failed with stage
in 0 seconds
......@@ -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