Skip to content

Commit

Permalink
Force mimetype for artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
devcurmudgeon committed Aug 1, 2016
1 parent 8bb6e76 commit 76b6fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kbas/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def get_morph_artifact():
@bottle.get('/get/<cache_id>')
def get_artifact(cache_id):
f = os.path.join(cache_id, cache_id)
return static_file(f, root=app.config['artifact-dir'], download=True)
return static_file(f, root=app.config['artifact-dir'], download=True,
mimetype='application/x-tar')

@bottle.get('/')
@bottle.get('/status')
Expand Down

0 comments on commit 76b6fc7

Please sign in to comment.