summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-01-16 00:38:25 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2017-01-16 00:38:25 +0100
commit1cccb378316d82ffdf4063b5aa3ecb5146d8fd79 (patch)
tree97408ab70b99f481b49020a39ed7509d82aa5521
parentbf8e174f0ae21b320c17b5a8f8d45aefcfef9520 (diff)
downloadgitlab-ce-fix-deprecation-warning.tar.gz
Fix a API deprecation warningfix-deprecation-warning
-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 20b5bc1502a..eb2d370c68e 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -294,7 +294,7 @@ module API
header['X-Sendfile'] = path
body
else
- file FileStreamer.new(path)
+ path
end
end