mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 00:38:04 +08:00
parent
30577b677a
commit
8cf5bd9c0a
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ class Client
|
|||
|
||||
$this->HTTP = \SnappyMail\HTTP\Request::factory(/*'socket'*/);
|
||||
$this->HTTP->proxy = $settings['proxy'] ?? null;
|
||||
$this->HTTP->setAuth(3, $settings['userName'] ?? '', $settings['password'] ?? '');
|
||||
if (!empty($settings['userName']) && !empty($settings['password'])) {
|
||||
$this->HTTP->setAuth(3, $settings['userName'], $settings['password']);
|
||||
} else {
|
||||
\SnappyMail\Log::warning('DAV', 'No user credentials set');
|
||||
}
|
||||
$this->HTTP->max_response_kb = 0;
|
||||
$this->HTTP->timeout = 15; // timeout in seconds.
|
||||
$this->HTTP->max_redirects = 0;
|
||||
|
|
Loading…
Reference in a new issue