From b1ea62b4d19cf8604aee273c868688631d7135d4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 18 Aug 2009 13:31:12 -0700 Subject: examples/echo: "Expect:" value is case-insensitive From RFC 2616, section 14.20: > Comparison of expectation values is case-insensitive for > unquoted tokens (including the 100-continue token), and is > case-sensitive for quoted-string expectation-extensions. --- examples/echo.ru | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/echo.ru b/examples/echo.ru index c79cb7b..14908c5 100644 --- a/examples/echo.ru +++ b/examples/echo.ru @@ -21,7 +21,7 @@ end use Rack::Chunked run lambda { |env| - /\A100-continue\z/ =~ env['HTTP_EXPECT'] and return [100, {}, []] + /\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [100, {}, []] [ 200, { 'Content-Type' => 'application/octet-stream' }, EchoBody.new(env['rack.input']) ] } -- cgit v1.2.3-24-ge0c7