diff options
author | James Tucker <jftucker@gmail.com> | 2014-12-23 15:21:33 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-19 10:57:38 -0800 |
commit | 33696dc3e4f8cba7397f64f77cee94dfb3abedb0 (patch) | |
tree | 2036be213603626fd80ec558789f5aa3f2ddda04 | |
parent | d170b2363c949dce60871f9d5a6bfc83da2bedb5 (diff) | |
download | rack-33696dc3e4f8cba7397f64f77cee94dfb3abedb0.tar.gz |
Fix lint header regex
-rw-r--r-- | lib/rack/lint.rb | 2 |
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 " + |