mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
node<6 compatibility (no Array.includes)
This commit is contained in:
parent
2c93221e9b
commit
f7ac728d36
@ -234,7 +234,7 @@ class AwsProvider {
|
||||
canUseS3TransferAcceleration(service, method) {
|
||||
// TODO enable more S3 APIs?
|
||||
return service === 'S3'
|
||||
&& ['upload', 'putObject'].includes(method)
|
||||
&& ['upload', 'putObject'].indexOf(method) !== -1
|
||||
&& this.isS3TransferAccelerationEnabled();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user