Only support basic auth at the moment, so use that if any auth is requested.
authorJan Schneider <jan@horde.org>
Wed, 7 Jul 2010 21:53:20 +0000 (23:53 +0200)
committerJan Schneider <jan@horde.org>
Wed, 7 Jul 2010 22:05:31 +0000 (00:05 +0200)
framework/Http/lib/Horde/Http/Request/Fopen.php

index dcbd1c0..e0909fd 100644 (file)
@@ -68,6 +68,7 @@ class Horde_Http_Request_Fopen extends Horde_Http_Request_Base
         if ($this->username) {
             switch ($this->authenticationScheme) {
             case Horde_Http::AUTH_BASIC:
+            case Horde_Http::AUTH_ANY:
                 $headers['Authorization'] = 'Basic ' . base64_encode($this->username . ':' . $this->password);
                 break;