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>
This commit is contained in:
Roeland Jago Douma 2019-07-10 11:42:22 +02:00 committed by Backportbot
parent 9c2074fb53
commit b62b835f6c

View file

@ -61,6 +61,7 @@ trait S3ObjectTrait {
}
$opts = [
'http' => [
'protocol_version' => 1.1,
'header' => $headers
]
];