API: Fix file downloading
This commit is contained in:
parent
7dc8b6b204
commit
6e1d675de9
2 changed files with 5 additions and 1 deletions
4
changelogs/unreleased/api-fix-files.yml
Normal file
4
changelogs/unreleased/api-fix-files.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: 'API: Fix file downloading'
|
||||
merge_request: Robert Schilling
|
||||
author: 8267
|
|
@ -304,7 +304,7 @@ module API
|
|||
header['X-Sendfile'] = path
|
||||
body
|
||||
else
|
||||
path
|
||||
file path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue