Commit 905e20d9 authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! Provide standard "Location" header when contributing a file.

"Location" is also used for redirection, so it cannot be used. Use a
similar but non-standard harder instead.
parent d6551965
......@@ -230,7 +230,7 @@ class ContributionTool(BaseTool):
input_parameter_dict=input_parameter_dict)
if REQUEST is not None:
response = REQUEST.RESPONSE
response.setHeader('Location', document.absolute_url())
response.setHeader('X-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