summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-11 20:04:27 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-11 20:04:46 +0800
commit2b728ed3dabcced23370b39ce256a03cf30fe86d (patch)
tree5975ae144fc6f9e32b78f509ba48bcf3d473bcf7
parent4b9f76cede975106e1e34af787e46720e3c3bb2e (diff)
downloadgitlab-ce-2b728ed3dabcced23370b39ce256a03cf30fe86d.tar.gz
Just give regular 404, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5094#note_12984211
-rw-r--r--app/controllers/projects/artifacts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index c6363999670..7241949393b 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -25,7 +25,7 @@ class Projects::ArtifactsController < Projects::ApplicationController
if entry.exists?
send_artifacts_entry(build, entry)
else
- render json: {}, status: 404
+ render_404
end
end