Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/aws4Public

Commita2a9796

Browse files
committed
Fixed syntax to be compatible with older node versions
1 parent212201a commita2a9796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/fast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('aws4', function() {
169169
})
170170
it('should remove protocol from host / hostname',function(){
171171
varhost='sqs.us-east-1.amazonaws.com';
172-
varopts=aws4.sign({hostname:`https://${host}`,headers:{Date:date}})
172+
varopts=aws4.sign({hostname:'https://'+host,headers:{Date:date}})
173173
opts.headers['Host'].should.equal(host)
174174
opts.headers['X-Amz-Date'].should.equal(iso)
175175
opts.headers.Authorization.should.equal(auth)
@@ -192,7 +192,7 @@ describe('aws4', function() {
192192
})
193193
it('should remove protocol from host',function(){
194194
varhost='sqs.us-east-1.amazonaws.com';
195-
varopts=aws4.sign({host:`https://${host}`,headers:{Date:date}})
195+
varopts=aws4.sign({host:'https://'+host,headers:{Date:date}})
196196
opts.headers['Host'].should.equal(host)
197197
opts.headers['X-Amz-Date'].should.equal(iso)
198198
opts.headers.Authorization.should.equal(auth)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp