From 1cb427ff5c0b977468643a39436f3b0a356fc8eb Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 26 Apr 2015 22:18:04 +0100 Subject: [PATCH] Force http1.1 protocol --- src/Composer/Util/RemoteFilesystem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 7c72c21c0..99abf5f22 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -405,6 +405,8 @@ class RemoteFilesystem } $options = array_replace_recursive($this->options, $additionalOptions); + $options['http']['protocol_version'] = 1.1; + $headers[] = 'Connection: close'; if ($this->io->hasAuthentication($originUrl)) { $auth = $this->io->getAuthentication($originUrl);