Skip to content
Permalink
Browse files

Changed the name of header to use in Digest method.

  • Loading branch information...
jrbasso committed Nov 13, 2010
1 parent 85607a9 commit 974161cf3a75a791571b59dc506dc71035abd2ca
Showing with 3 additions and 3 deletions.
  1. +2 −2 cake/libs/http/digest_method.php
  2. +1 −1 cake/tests/cases/libs/http/digest_method.test.php
@@ -55,10 +55,10 @@ protected static function _getServerInformation(&$http) {
$http->request($http->request);
$http->request = $originalRequest;
if (empty($http->response['header']['Www-Authenticate'])) {
if (empty($http->response['header']['WWW-Authenticate'])) {
return false;
}
preg_match_all('@(\w+)=(?:(?:")([^"]+)"|([^\s,$]+))@', $http->response['header']['Www-Authenticate'], $matches, PREG_SET_ORDER);
preg_match_all('@(\w+)=(?:(?:")([^"]+)"|([^\s,$]+))@', $http->response['header']['WWW-Authenticate'], $matches, PREG_SET_ORDER);
foreach ($matches as $match) {
$http->config['request']['auth'][$match[1]] = $match[2];
}
@@ -37,7 +37,7 @@ class DigestHttpSocket extends HttpSocket {
* @return void
*/
public function request($request) {
$this->response['header']['Www-Authenticate'] = $this->nextHeader;
$this->response['header']['WWW-Authenticate'] = $this->nextHeader;
}
}

0 comments on commit 974161c

Please sign in to comment.
You can’t perform that action at this time.