summary refs log tree commit
diff options
context:
space:
mode:
authorRafael França <rafael@franca.dev>2019-10-28 22:09:13 -0400
committerGitHub <noreply@github.com>2019-10-28 22:09:13 -0400
commit18365e63d054b65e5f1b0b69e4c95ad83fadc71d (patch)
tree22358109ba5a100cb345555817cd7b2e03e6d0a4
parentdf0faa99198c87c3322d29dcc4f42af40247739b (diff)
parent1b1add8ac8be7eaf117392d63369f7be2709511c (diff)
downloadrack-18365e63d054b65e5f1b0b69e4c95ad83fadc71d.tar.gz
Merge pull request #1402 from ahorek/freeze
remove redundant freeze
-rw-r--r--lib/rack/static.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/static.rb b/lib/rack/static.rb
index 7332914a..512e4da9 100644
--- a/lib/rack/static.rb
+++ b/lib/rack/static.rb
@@ -104,7 +104,7 @@ module Rack
     end
 
     def add_index_root?(path)
-      @index && route_file(path) && path.end_with?('/'.freeze)
+      @index && route_file(path) && path.end_with?('/')
     end
 
     def overwrite_file_path(path)