summary refs log tree commit
path: root/lib/rack/conditional_get.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/conditional_get.rb')
-rw-r--r--lib/rack/conditional_get.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rack/conditional_get.rb b/lib/rack/conditional_get.rb
index 441dd382..bda8daf6 100644
--- a/lib/rack/conditional_get.rb
+++ b/lib/rack/conditional_get.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rack/utils'
 
 module Rack
@@ -68,7 +70,7 @@ module Rack
       # anything shorter is invalid, this avoids exceptions for common cases
       # most common being the empty string
       if since && since.length >= 16
-        # NOTE: there is no trivial way to write this in a non execption way
+        # NOTE: there is no trivial way to write this in a non exception way
         #   _rfc2822 returns a hash but is not that usable
         Time.rfc2822(since) rescue nil
       else