Changing the auth value only if auth not is setted.

This commit is contained in:
Juan Basso 2010-11-13 13:40:00 -02:00
parent 777afb6d3e
commit 1dfd3ce0b1

View file

@ -442,7 +442,7 @@ class HttpSocket extends CakeSocket {
*/
protected function _setAuth() {
if (empty($this->request['auth']['method'])) {
if (isset($this->request['uri']['user'], $this->request['uri']['pass'])) {
if (isset($this->request['uri']['user'], $this->request['uri']['pass']) && !isset($this->request['auth']['user'])) {
$this->request['auth'] = array(
'method' => 'Basic',
'user' => $this->request['uri']['user'],