From 66315a2cb6e8920165af077a19a929e907383092 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Sat, 8 Mar 2014 17:41:11 +0300 Subject: [PATCH] Update HttpBearerAuth.php typo fix --- framework/rest/HttpBearerAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/rest/HttpBearerAuth.php b/framework/rest/HttpBearerAuth.php index 81033c924d..fa39d63084 100644 --- a/framework/rest/HttpBearerAuth.php +++ b/framework/rest/HttpBearerAuth.php @@ -46,7 +46,7 @@ class HttpBearerAuth extends Component implements AuthInterface */ public function handleFailure($response) { - $response->getHeaders()->set('WWW-Authenticate', "Basic realm=\"{$this->realm}\""); + $response->getHeaders()->set('WWW-Authenticate', "Bearer realm=\"{$this->realm}\""); throw new UnauthorizedHttpException('You are requesting with an invalid access token.'); } }