diff --git a/src/Installer/CKEditorInstaller.php b/src/Installer/CKEditorInstaller.php index 1b9727a5..13072a13 100644 --- a/src/Installer/CKEditorInstaller.php +++ b/src/Installer/CKEditorInstaller.php @@ -219,6 +219,13 @@ private function createStreamContext(callable $notifier = null) 'request_fulluri' => (bool) getenv('https_proxy_request_fulluri') ?: getenv('http_proxy_request_fulluri'), ]; + + if (!empty($proxyUrl['user']) && !empty($proxyUrl['pass'])) { + $proxyUser = urldecode($proxyUrl['user']).':'.urldecode($proxyUrl['pass']); + $auth = base64_encode($proxyUser); + + $context['http']['header'] = "Proxy-Authorization: Basic $auth"; + } } return stream_context_create($context, [