diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-06-12 09:18:17 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-06-12 09:18:17 +0000 |
commit | 7bca57bb6b6ed98e21b9aa4e29f8939cc8a1e6d1 (patch) | |
tree | aee803075bd51293f148020ff9a97fbbe686b8a3 /tests | |
parent | f090899eaeb0e8c78104732407c8e3d30d017f20 (diff) | |
download | lighttpd-git-7bca57bb6b6ed98e21b9aa4e29f8939cc8a1e6d1.tar.gz |
final fix for testcase and #177
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@378 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/core-response.t | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/core-response.t b/tests/core-response.t index 844a4295..1d0d76b3 100755 --- a/tests/core-response.t +++ b/tests/core-response.t @@ -173,10 +173,12 @@ sub handle_http { } if ($no_val == 0) { - if ($href->{$_} =~ /^\/(.+)\/$/ && $resp_hdr{$k} !~ /$1/) { - diag(sprintf("response-header failed: expected '%s', got '%s', regex: %s\n", - $href->{$_}, $resp_hdr{$k}, $1)); - return -1; + if ($href->{$_} =~ /^\/(.+)\/$/) { + if ($resp_hdr{$k} !~ /$1/) { + diag(sprintf("response-header failed: expected '%s', got '%s', regex: %s\n", + $href->{$_}, $resp_hdr{$k}, $1)); + return -1; + } } elsif ($href->{$_} ne $resp_hdr{$k}) { diag(sprintf("response-header failed: expected '%s', got '%s'\n", $href->{$_}, $resp_hdr{$k})); |