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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-07-20 16:33:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-07-20 16:33:18 +0300
commit6b8ad689da393125bb2d1e548211c9a50039b0a7 (patch)
treeeb35d412b07e28c58d9cbd017ca357ae16aefef0 /lib/api/variables.rb
parent4766a77b1d44bb6989e6c86a7a7dd10f6983ba4e (diff)
Update grape gem
New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/variables.rb')
-rw-r--r--lib/api/variables.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb
index 7fa528fb2d3..7c0fdd3d1be 100644
--- a/lib/api/variables.rb
+++ b/lib/api/variables.rb
@@ -88,6 +88,7 @@ module API
variable = user_project.variables.find_by(key: params[:key])
not_found!('Variable') unless variable
+ status 204
variable.destroy
end
end