summaryrefslogtreecommitdiff
path: root/app/controllers/projects/blob_controller.rb
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-11-22 18:47:29 +0100
committerJasper Maes <jaspermaes.jm@gmail.com>2018-11-23 10:56:14 +0100
commit6ffdab63c5ad0b255b0ab605ff97fb93bee6465d (patch)
treef7ead28311a7630d777ab6d86fe4f91560a8590b /app/controllers/projects/blob_controller.rb
parent0a42c7cbaae51466a67a4011859726c29bc24da4 (diff)
downloadgitlab-ce-6ffdab63c5ad0b255b0ab605ff97fb93bee6465d.tar.gz
render :nothing option is deprecated, Use head method to respond with empty response body.
Diffstat (limited to 'app/controllers/projects/blob_controller.rb')
-rw-r--r--app/controllers/projects/blob_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 2a6fe3b9c97..873c96a5523 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -233,7 +233,7 @@ class Projects::BlobController < Projects::ApplicationController
def validate_diff_params
if [:since, :to, :offset].any? { |key| params[key].blank? }
- render nothing: true
+ head :ok
end
end