anchor.diff:      case header_value(Req, "WWW-Authenticate") of
       "X-Couch-Test-Auth " ++ NamePass ->
           % NamePass is a colon separated string: "joe schmoe:a password".
  -        [Name, Pass] = re:split(NamePass, ":", [{return, list}]),
  +        [Name, Pass] = re:split(NamePass, ":", [{return, list}, {parts, 2}]),
           case {Name, Pass} of
           {"Jan Lehnardt", "apple"} -> ok;
           {"Christopher Lenz", "dog food"} -> ok;
  
positive.code:     undefined -> Req;
      [] -> Req;
      Cookie ->
          [User, TimeStr | HashParts] = try
              AuthSession = couch_util:decodeBase64Url(Cookie),
              [_A, _B | _Cs] = re:split(?b2l(AuthSession), ":", [{return, list}])
          catch
              _:_Error ->
                  Reason = <<"Malformed AuthSession cookie. Please clear your cookies.">>,
  
negative.code:                 UserSalt = couch_util:get_value(<<"salt">>, UserProps, <<"">>),
                  FullSecret = <<Secret/binary, UserSalt/binary>>,
                  ExpectedHash = crypto:sha_mac(FullSecret, User ++ ":" ++ TimeStr),
                  Hash = ?l2b(HashStr),
                  Timeout = list_to_integer(
                      couch_config:get("couch_httpd_auth", "timeout", "600")),
                  ?LOG_DEBUG("timeout ~p", [Timeout]),
  