提交的内容
This commit is contained in:
5
vendor/qcloud/cos-sdk-v5/src/Signature.php
vendored
Executable file → Normal file
5
vendor/qcloud/cos-sdk-v5/src/Signature.php
vendored
Executable file → Normal file
@ -32,7 +32,6 @@ class Signature {
|
||||
'content-length',
|
||||
'content-md5',
|
||||
'content-type',
|
||||
'expect',
|
||||
'expires',
|
||||
'host',
|
||||
'if-match',
|
||||
@ -42,6 +41,7 @@ class Signature {
|
||||
'origin',
|
||||
'range',
|
||||
'transfer-encoding',
|
||||
'pic-operations',
|
||||
];
|
||||
date_default_timezone_set($this->options['timezone']);
|
||||
}
|
||||
@ -53,6 +53,9 @@ class Signature {
|
||||
if ( startWith( $header, 'x-cos-' ) ) {
|
||||
return true;
|
||||
}
|
||||
if ( startWith( $header, 'x-ci-' ) ) {
|
||||
return true;
|
||||
}
|
||||
if ( in_array( $header, $this->signHeader ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user