API: Fix file downloading

This commit is contained in:
Robert Schilling 2017-02-03 12:42:11 +01:00
parent 7dc8b6b204
commit 6e1d675de9
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
title: 'API: Fix file downloading'
merge_request: Robert Schilling
author: 8267

View file

@ -304,7 +304,7 @@ module API
header['X-Sendfile'] = path
body
else
path
file path
end
end