]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use HTTP1.1 to read S3 objects 16323/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Jul 2019 09:42:22 +0000 (11:42 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Jul 2019 09:42:22 +0000 (11:42 +0200)
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

index 7c46ba25c11262076447a33ae61a0334320c43f1..82ab4195e40912f33feba7d913aa1517bad36072 100644 (file)
@@ -61,6 +61,7 @@ trait S3ObjectTrait {
                }
                $opts = [
                        'http' => [
+                               'protocol_version'  => 1.1,
                                'header' => $headers
                        ]
                ];