summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 18:02:44 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 18:02:44 +0100
commitf1fba299bd07510346082ef985ef08a494dca9d9 (patch)
tree1427ab0c4ed25ff4b04b4e6728ac057c1ce36737
parentd751e8da557741eb21d0856293e80d57474721b7 (diff)
downloadmorph-cache-server-f1fba299bd07510346082ef985ef08a494dca9d9.tar.gz
Use the desired artifact filename as the download filename.
-rwxr-xr-xmorph-cache-server1
1 files changed, 1 insertions, 0 deletions
diff --git a/morph-cache-server b/morph-cache-server
index 4639a33..7618f5b 100755
--- a/morph-cache-server
+++ b/morph-cache-server
@@ -100,6 +100,7 @@ class MorphCacheServer(cliapp.Application):
if os.path.exists(filename):
return static_file(basename,
root=self.settings['artifact-dir'],
+ filename=basename,
download=True)
else:
response.status = 404