Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
819d2bc5
Commit
819d2bc5
authored
Mar 15, 2017
by
neilpang
Browse files
fix for wget. fix
https://github.com/Neilpang/acme.sh/issues/724#issuecomment-286761682
parent
04683338
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_aws.sh
View file @
819d2bc5
...
...
@@ -143,7 +143,7 @@ aws_rest() {
CanonicalHeaders
=
"host:
$aws_host
\n
x-amz-date:
$RequestDate
\n
"
SignedHeaders
=
"host;x-amz-date"
if
[
-n
"
$AWS_SESSION_TOKEN
"
]
;
then
export
_H
2
=
"x-amz-security-token:
$AWS_SESSION_TOKEN
"
export
_H
3
=
"x-amz-security-token:
$AWS_SESSION_TOKEN
"
CanonicalHeaders
=
"
${
CanonicalHeaders
}
x-amz-security-token:
$AWS_SESSION_TOKEN
\n
"
SignedHeaders
=
"
${
SignedHeaders
}
;x-amz-security-token"
fi
...
...
@@ -204,8 +204,8 @@ aws_rest() {
Authorization
=
"
$Algorithm
Credential=
$AWS_ACCESS_KEY_ID
/
$CredentialScope
, SignedHeaders=
$SignedHeaders
, Signature=
$signature
"
_debug2 Authorization
"
$Authorization
"
_H
3
=
"Authorization:
$Authorization
"
_debug _H
3
"
$_H
3
"
_H
2
=
"Authorization:
$Authorization
"
_debug _H
2
"
$_H
2
"
url
=
"
$AWS_URL
/
$ep
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment