Permalink
Browse files

Tiny code simplification

  • Loading branch information...
joamag committed Dec 5, 2018
1 parent 293d508 commit b1905b57ebecda6b440eb894f8a01921d304abfc
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/story/controllers/api/object.py
@@ -62,9 +62,8 @@ def _handle_file(self, file, file_name, attachement = False):
# sets the content disposition header indicating the name to be
# set in case the file is downloaded, this overcomes the fact
# that the final url contains the key value
if file_name: self.request.set_header(
"Content-Disposition",
# that the final URL contains the key value
if file_name: self.content_disposition(
attachement_s + "filename=\"" + self.quote(file_name) + "\""
)

0 comments on commit b1905b5

Please sign in to comment.