mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-67031' of https://github.com/stronk7/moodle
This commit is contained in:
commit
88b2d7b1a1
@ -6,3 +6,9 @@ Cloned from git://github.com/tpyo/amazon-s3-php-class.git
|
||||
|
||||
https://github.com/tpyo/amazon-s3-php-class
|
||||
http://undesigned.org.za/2007/10/22/amazon-s3-php-class
|
||||
|
||||
Local changes applied:
|
||||
(verify on each upgrade of the library if they have been applied
|
||||
upstream. Remove the local changes if so)
|
||||
|
||||
MDL-67031 php74 compliance. Change curly to square braces.
|
||||
|
@ -2354,7 +2354,7 @@ final class S3Request
|
||||
elseif ($header == 'Content-Type')
|
||||
$this->response->headers['type'] = $value;
|
||||
elseif ($header == 'ETag')
|
||||
$this->response->headers['hash'] = $value{0} == '"' ? substr($value, 1, -1) : $value;
|
||||
$this->response->headers['hash'] = $value[0] == '"' ? substr($value, 1, -1) : $value;
|
||||
elseif (preg_match('/^x-amz-meta-.*$/', $header))
|
||||
$this->response->headers[$header] = $value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user