We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab76ee5 commit b0b0c5fCopy full SHA for b0b0c5f
tests/PHPCurlClass/server.php
@@ -47,7 +47,7 @@
47
if ($test === 'http_basic_auth') {
48
if (!isset($_SERVER['PHP_AUTH_USER'])) {
49
header('WWW-Authenticate: Basic realm="My Realm"');
50
- header('HTTP/1.0 401 Unauthorized');
+ header('HTTP/1.1 401 Unauthorized');
51
echo 'canceled';
52
exit;
53
}
@@ -329,7 +329,7 @@
329
if (isset($_SESSION['failures_remaining'])) {
330
$failures_remaining = $_SESSION['failures_remaining'];
331
} else {
332
- $failures_remaining = ((int)$_GET['failures']);
+ $failures_remaining = (int)$_GET['failures'];
333
$_SESSION['failures_remaining'] = $failures_remaining;
334
335
0 commit comments