send_with_docbow: include filename in URL

This commit is contained in:
Frédéric Péters 2014-10-21 15:57:50 +02:00
parent a2e718b102
commit 99cd46f2d0
1 changed files with 2 additions and 1 deletions

View File

@ -19,5 +19,6 @@ class SendWithDocbowView(BrowserView):
docbow = 'https://test-secure.pfwb.be'
else:
docbow = 'https://secure.pfwb.be'
docbow += '/send_file/?url=' + urllib.quote(version_url + '/@@download')
docbow += '/send_file/?url=' + urllib.quote(
version_url + '/@@download?filename=' + self.context.file.filename)
self.request.response.redirect(docbow)