Browse Source

status header is more reasonable to be 1st

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@533 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
1917ea0de4
  1. 4
      xcache.c

4
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");

Loading…
Cancel
Save