From 33696dc3e4f8cba7397f64f77cee94dfb3abedb0 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Tue, 23 Dec 2014 15:21:33 -0400 Subject: Fix lint header regex --- lib/rack/lint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " + -- cgit v1.2.3-24-ge0c7