changeset 439:d5b541a8cf95

Tests: removed extra EOL in auth_basic.t requests. While here, fixed sloppy coding.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 18 Jul 2014 13:22:58 +0400
parents 60888e2c3f5a
children 13ffba66f4e3
files auth_basic.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/auth_basic.t
+++ b/auth_basic.t
@@ -120,9 +120,9 @@ like(http_get_auth('/', 'sha3', '1'), qr
 sub http_get_auth {
 	my ($url, $user, $password) = @_;
 
-	my $auth = encode_base64($user . ':' . $password);
+	my $auth = encode_base64($user . ':' . $password, '');
 
-        my $r = http(<<EOF);
+	return http(<<EOF);
 GET $url HTTP/1.0
 Host: localhost
 Authorization: Basic $auth