mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Change content-type for consistency and i18n.
This commit is contained in:
parent
9fc998ba9c
commit
3019312acd
@ -59,7 +59,8 @@ class BasicAuthSession {
|
||||
}
|
||||
|
||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
header('HTTP/1.0 401 Unauthorized', true, 401 );
|
||||
header('HTTP/1.1 401 Unauthorized', true, 401 );
|
||||
header('Content-type: text/plain; ; charset="utf-8"' );
|
||||
header( sprintf( 'WWW-Authenticate: Basic realm="%s"', $c->system_name) );
|
||||
echo 'Please log in for access to this system.';
|
||||
dbg_error_log( "BasicAuth", ":Session: User is not authorised" );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user