diff options
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index de9d42bdce7..e4a7f2213ae 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -705,8 +705,16 @@ module API body '' end + # Deprecated. Use `send_artifacts_entry` instead. + def legacy_send_artifacts_entry(file, entry) + header(*Gitlab::Workhorse.send_artifacts_entry(file, entry)) + + body '' + end + def send_artifacts_entry(file, entry) header(*Gitlab::Workhorse.send_artifacts_entry(file, entry)) + header(*Gitlab::Workhorse.detect_content_type) body '' end |