From 1917ea0de4ca960b2610dc210ff6ac4a4fba1286 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Fri, 29 Feb 2008 07:08:37 +0000 Subject: [PATCH] status header is more reasonable to be 1st git-svn-id: svn://svn.lighttpd.net/xcache/trunk@533 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcache.c b/xcache.c index d8a121a..500ddee 100644 --- a/xcache.c +++ b/xcache.c @@ -1966,10 +1966,10 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */ } } -#define STR "WWW-authenticate: Basic Realm=\"XCache Administration\"" +#define STR "HTTP/1.0 401 Unauthorized" sapi_add_header_ex(STR, sizeof(STR) - 1, 1, 1 TSRMLS_CC); #undef STR -#define STR "HTTP/1.0 401 Unauthorized" +#define STR "WWW-authenticate: Basic Realm=\"XCache Administration\"" sapi_add_header_ex(STR, sizeof(STR) - 1, 1, 1 TSRMLS_CC); #undef STR ZEND_PUTS("XCache Auth Failed. User and Password is case sense\n");