Commit d6551965 authored by Vincent Pelletier's avatar Vincent Pelletier

Provide standard "Location" header when contributing a file.

parent dadec5b9
......@@ -229,7 +229,9 @@ class ContributionTool(BaseTool):
user_login=user_login,
input_parameter_dict=input_parameter_dict)
if REQUEST is not None:
return REQUEST.RESPONSE.redirect(self.absolute_url())
response = REQUEST.RESPONSE
response.setHeader('Location', document.absolute_url())
return response.redirect(self.absolute_url())
return document
#
......
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