Commit 9d91b9b0 authored by mku's avatar mku

ZP-577 #comment remove http_response_code(401); because there already is...

ZP-577 #comment remove http_response_code(401); because there already is header('HTTP/1.1 401 Unauthorized'); call which does the same.

git-svn-id: https://z-push.org/svn/z-push/trunk@1974 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 28ba3a33
......@@ -122,7 +122,6 @@ class ZPushAutodiscover {
}
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Basic realm="ZPush"');
http_response_code(401);
}
catch (ZPushException $ex) {
ZLog::Write(LOGLEVEL_ERROR, sprintf("Unable to complete autodiscover because of ZPushException. Error: %s", $ex->getMessage()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment