-0.11 2008-XX-XX
+0.11 2008-11-12
- Changed cache modules used in the tests to not be deprecated.
+ - Fix RT#31036, and comply with RFC2617 Section 1.2.
0.10 2007-04-26
- switch to Module::Install
use Catalyst ();
use Digest::MD5 ();
-our $VERSION = "0.10";
+our $VERSION = "0.11";
sub authenticate_http {
my ( $c, @args ) = @_;
my ( $c, $opts ) = @_;
if ( my $realm = $opts->{realm} ) {
- return 'realm=' . String::Escape::qprintable($realm);
+ my $realm_name = String::Escape::qprintable($realm);
+ $realm_name =~ s/"/\\"/g;
+ return 'realm="' . $realm_name . '"';
} else {
return;
}
is( $body, 'Authorization required.' );
like( ($res_headers->header('WWW-Authenticate'))[0], qr/^Digest/, "WWW-Authenticate header set: digest");
like( ($res_headers->header('WWW-Authenticate'))[1], qr/^Basic/, "WWW-Authenticate header set: basic");
-like( ($res_headers->header('WWW-Authenticate'))[1], qr/realm=foo/, "WWW-Authenticate header set: basic with realm");
+like( ($res_headers->header('WWW-Authenticate'))[1], qr/realm="foo"/, "WWW-Authenticate header set: basic with realm");
+