miyagawa/Plack — pull request #293 by 2shortplanks (2012-05-29 12:09:04+00:00)
Title: make "Basic" detection insensitive as per RFC2617

11:46 < Trelane> seen miyagawa?
11:47 < Trelane> if ($auth =~ /^Basic (.*)$/) {
11:47 < Trelane> (in Plack::Middleware::Auth::Basic)
11:47 < Trelane> HTTP provides a simple challenge-response authentication mechanism that
MAY be used by a server to challenge a client request and by a client to
provide authentication information. It uses an extensible,
case-insensitive token to identify the authentication scheme, followed by
a comma-separated list of attribute-value pairs which carry the parameters
necessary for achieving authentication via that
11:48 < Trelane> http://tools.ietf.org/html/rfc2617#section-1.2
11:48 < Trelane> Does that regex need a /i at the end?
12:00 <@mst> sounds like it to me