Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-06 14:18:30 +0300
committerRémy Coutable <remy@rymai.me>2017-02-06 14:18:30 +0300
commitda359c46b598ba44cff1829ab4abe49c4c225ae2 (patch)
tree3e1a3c328f2f18304e7caa637f23c5807a1e57d9 /lib
parent572fb0be9b1d45437b7c0ed1000399657f471ec7 (diff)
parentf5de8f159e9fb79ed523fcb41c4b062eeaf3f811 (diff)
Merge branch 'api-fix-files' into 'master'
API: Fix file downloading See merge request !8953
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index eb5b947172a..dfab60f7fa5 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -304,7 +304,7 @@ module API
header['X-Sendfile'] = path
body
else
- path
+ file path
end
end