about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-18 13:31:12 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-18 13:31:12 -0700
commit637d59209bef0eeb2643aadfa4c44a01ca905bd9 (patch)
tree8a746056f61d20f9774ccdb24f4b06fb32ebca73 /examples
parent69650f8f09fca2c7df3230e2bf054961a5292e52 (diff)
downloadunicorn-637d59209bef0eeb2643aadfa4c44a01ca905bd9.tar.gz
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/echo.ru2
1 files changed, 1 insertions, 1 deletions
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']) ]
 }