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
6a66ba8a
Commit
6a66ba8a
authored
Mar 18, 2018
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/1411
parent
36a7a840
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
6a66ba8a
...
...
@@ -1617,6 +1617,7 @@ _post() {
_debug $httpmethod
_debug "_post_url" "$_post_url"
_debug2 "body" "$body"
_debug2 "_postContentType" "$_postContentType"
_inithttp
...
...
@@ -1785,6 +1786,11 @@ _send_signed_request() {
return 1
fi
if [ "$ACME_VERSION" = "2" ]; then
__request_conent_type="$CONTENT_TYPE_JSON"
else
__request_conent_type=""
fi
payload64=$(printf "%s" "$payload" | _base64 | _url_replace)
_debug3 payload64 "$payload64"
...
...
@@ -1797,7 +1803,7 @@ _send_signed_request() {
if [ "$ACME_NEW_NONCE" ]; then
_debug2 "Get nonce. ACME_NEW_NONCE" "$ACME_NEW_NONCE"
nonceurl="$ACME_NEW_NONCE"
if _post "" "$nonceurl" "" "HEAD" "$
CONTENT_TYPE_JSON
"; then
if _post "" "$nonceurl" "" "HEAD" "$
__request_conent_type
"; then
_headers="$(cat "$HTTP_HEADER")"
fi
fi
...
...
@@ -1852,7 +1858,7 @@ _send_signed_request() {
fi
_debug3 body "$body"
response="$(_post "$body" "$url" "$needbase64" "POST" "$
CONTENT_TYPE_JSON
")"
response="$(_post "$body" "$url" "$needbase64" "POST" "$
__request_conent_type
")"
_CACHED_NONCE=""
if [ "$?" != "0" ]; then
...
...
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