Skip to content
Browse files

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.
  • Loading branch information...
1 parent 4e81d6f commit b1ea62b4d19cf8604aee273c868688631d7135d4 Eric Wong committed Aug 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/echo.ru
View
2 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']) ]
}

0 comments on commit b1ea62b

Please sign in to comment.
Something went wrong with that request. Please try again.