summaryrefslogtreecommitdiff
path: root/tests/mod-auth.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2007-11-23 15:23:35 +0000
committerJan Kneschke <jan@kneschke.de>2007-11-23 15:23:35 +0000
commit708f499d757011dbf782aa16fd4cf9c8f56cda76 (patch)
treeb75386bf7ebfa5b38de92617dab04c58c197320e /tests/mod-auth.t
parent12bf15dd4e2e629d5c03352a6037f7d68c285fcf (diff)
downloadlighttpd1.4-708f499d757011dbf782aa16fd4cf9c8f56cda76.tar.gz
lighttpd1.4-708f499d757011dbf782aa16fd4cf9c8f56cda76.zip
fixed case-sensitive match of auth-method (fixes #1456)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2026 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-auth.t')
-rwxr-xr-xtests/mod-auth.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/mod-auth.t b/tests/mod-auth.t
index cfeb0421..3c541df7 100755
--- a/tests/mod-auth.t
+++ b/tests/mod-auth.t
@@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
-use Test::More tests => 13;
+use Test::More tests => 14;
use LightyTest;
my $tf = LightyTest->new();
@@ -48,6 +48,16 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
ok($tf->handle_http($t) == 0, 'Basic-Auth: Valid Auth-token - htpasswd (des)');
+$t->{REQUEST} = ( <<EOF
+GET /server-config HTTP/1.0
+Host: auth-htpasswd.example.org
+Authorization: basic ZGVzOmRlcw==
+EOF
+ );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
+ok($tf->handle_http($t) == 0, 'Basic-Auth: Valid Auth-token - htpasswd (des) (lowercase)');
+
+
SKIP: {
skip "no md5 for crypt under cygwin", 1 if $^O eq 'cygwin';
$t->{REQUEST} = ( <<EOF