summary refs log tree commit
diff options
context:
space:
mode:
authorJames Tucker <jftucker@gmail.com>2014-12-23 15:21:33 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2015-02-19 10:57:38 -0800
commit33696dc3e4f8cba7397f64f77cee94dfb3abedb0 (patch)
tree2036be213603626fd80ec558789f5aa3f2ddda04
parentd170b2363c949dce60871f9d5a6bfc83da2bedb5 (diff)
downloadrack-33696dc3e4f8cba7397f64f77cee94dfb3abedb0.tar.gz
Fix lint header regex
-rw-r--r--lib/rack/lint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb
index bb843ad6..df4a5832 100644
--- a/lib/rack/lint.rb
+++ b/lib/rack/lint.rb
@@ -639,7 +639,7 @@ module Rack
         assert("header must not contain Status") { key.downcase != "status" }
         ## The header must conform to RFC7230 token specification, i.e. cannot
         ## contain non-printable ASCII, DQUOTE or "(),/:;<=>?@[\]{}".
-        assert("invalid header name: #{key}") { key !~ /[\(\),\/:;<=>\?@\[\\\]{}[[:cntrl:]]]/ }
+        assert("invalid header name: #{key}") { key !~ /[\(\),\/:;<=>\?@\[\\\]{}[:cntrl:]]/ }
 
         ## The values of the header must be Strings,
         assert("a header value must be a String, but the value of " +