diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-03-01 14:35:48 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-28 16:40:25 +0200 |
commit | 998afa5f74558be215a924d95aa131a69831ca43 (patch) | |
tree | 500c242e2bacd966b3faf1a019f28edff2ee24d7 /lib/api/system_hooks.rb | |
parent | 7ccef75a26bc4997e04c109007e6c6ee004574cb (diff) | |
download | gitlab-ce-998afa5f74558be215a924d95aa131a69831ca43.tar.gz |
API: Respect the 'If-Unmodified-Since' for delete endpoints
Diffstat (limited to 'lib/api/system_hooks.rb')
-rw-r--r-- | lib/api/system_hooks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/system_hooks.rb b/lib/api/system_hooks.rb index c0179037440..64066a75b15 100644 --- a/lib/api/system_hooks.rb +++ b/lib/api/system_hooks.rb @@ -66,6 +66,8 @@ module API hook = SystemHook.find_by(id: params[:id]) not_found!('System hook') unless hook + check_unmodified_since(hook.updated_at) + status 204 hook.destroy end |