From e953205908c851ebba4d94e2ab55f1fba75c0352 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Wed, 10 Jul 2019 11:42:22 +0200
Subject: [PATCH] Use HTTP1.1 to read S3 objects

Some of the READs otherwise use HTTP/1.0 which is not always supported
by all backends. HTTP/1.1 is there since 1999 way longer than S3 so safe
to assume it is always there IMO.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 lib/private/Files/ObjectStore/S3ObjectTrait.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index 7c46ba25c11..82ab4195e40 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -61,6 +61,7 @@ trait S3ObjectTrait {
 		}
 		$opts = [
 			'http' => [
+				'protocol_version'  => 1.1,
 				'header' => $headers
 			]
 		];
-- 
GitLab