diff options
| author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-30 09:56:17 +0000 |
|---|---|---|
| committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-30 09:56:17 +0000 |
| commit | f11049ab9131b78c14e95bd95b3073c1eaf59392 (patch) | |
| tree | 882c763637a02a386486799c39897bd563c7b6aa /lib/api/environments.rb | |
| parent | a16854ff462935f1a967f31abfeb242cf26284cc (diff) | |
| parent | ee4820a5268d02fb7ed142511d1a194f06629a1e (diff) | |
| download | gitlab-ce-f11049ab9131b78c14e95bd95b3073c1eaf59392.tar.gz | |
Merge branch 'api-delete-respect-headers' into 'master'
API: Respect the 'If-Unmodified-Since' for delete endpoints
See merge request !9621
Diffstat (limited to 'lib/api/environments.rb')
| -rw-r--r-- | lib/api/environments.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/environments.rb b/lib/api/environments.rb index c774a5c6685..e33269f9483 100644 --- a/lib/api/environments.rb +++ b/lib/api/environments.rb @@ -79,8 +79,7 @@ module API environment = user_project.environments.find(params[:environment_id]) - status 204 - environment.destroy + destroy_conditionally!(environment) end desc 'Stops an existing environment' do |
