From 3019312acd21171939b68c71984a38ce9f18469c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 7 Aug 2007 20:42:46 +1200 Subject: [PATCH] Change content-type for consistency and i18n. --- inc/BasicAuthSession.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/BasicAuthSession.php b/inc/BasicAuthSession.php index d6a5f421..478e6ffb 100644 --- a/inc/BasicAuthSession.php +++ b/inc/BasicAuthSession.php @@ -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" );