Skip to content

Commit b0b0c5f

Browse files
committed
Clean up
1 parent ab76ee5 commit b0b0c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPCurlClass/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
if ($test === 'http_basic_auth') {
4848
if (!isset($_SERVER['PHP_AUTH_USER'])) {
4949
header('WWW-Authenticate: Basic realm="My Realm"');
50-
header('HTTP/1.0 401 Unauthorized');
50+
header('HTTP/1.1 401 Unauthorized');
5151
echo 'canceled';
5252
exit;
5353
}
@@ -329,7 +329,7 @@
329329
if (isset($_SESSION['failures_remaining'])) {
330330
$failures_remaining = $_SESSION['failures_remaining'];
331331
} else {
332-
$failures_remaining = ((int)$_GET['failures']);
332+
$failures_remaining = (int)$_GET['failures'];
333333
$_SESSION['failures_remaining'] = $failures_remaining;
334334
}
335335

0 commit comments

Comments
 (0)