diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-24 11:41:54 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-28 18:10:30 +0300 |
commit | dcd4ea473cab20eee05995ecaca043da98ca5a8d (patch) | |
tree | af1c7e0fb076cdc707bae65420419ac671e26b0a /lib/api/helpers.rb | |
parent | f0f3f38576c0691e6d0e751c962382beea998afb (diff) |
Update remaining endpoints
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 8d4f8c01903..84980864151 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -14,7 +14,7 @@ module API def check_unmodified_since!(last_modified) if_unmodified_since = Time.parse(headers['If-Unmodified-Since']) rescue nil - if if_unmodified_since && last_modified > if_unmodified_since + if if_unmodified_since && last_modified && last_modified > if_unmodified_since render_api_error!('412 Precondition Failed', 412) end end |