Updated the config of auth in digest method.

This commit is contained in:
Juan Basso 2010-12-15 01:51:00 -02:00
parent 296aef2c11
commit 99407282e5

View file

@ -53,10 +53,10 @@ class DigestAuthentication {
*/
protected static function _getServerInformation(HttpSocket $http, &$authInfo) {
$originalRequest = $http->request;
$http->setAuthConfig(false);
$http->configAuth(false);
$http->request($http->request);
$http->request = $originalRequest;
$http->setAuthConfig('Digest', $authInfo);
$http->configAuth('Digest', $authInfo);
if (empty($http->response['header']['WWW-Authenticate'])) {
return false;