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
91d37c78
Commit
91d37c78
authored
May 01, 2021
by
neil
Browse files
fix compatibility issue
parent
5707b931
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
91d37c78
...
@@ -2038,7 +2038,7 @@ _send_signed_request() {
...
@@ -2038,7 +2038,7 @@ _send_signed_request() {
if _post "" "$nonceurl" "" "HEAD" "$__request_conent_type" >/dev/null; then
if _post "" "$nonceurl" "" "HEAD" "$__request_conent_type" >/dev/null; then
_headers="$(cat "$HTTP_HEADER")"
_headers="$(cat "$HTTP_HEADER")"
_debug2 _headers "$_headers"
_debug2 _headers "$_headers"
_CACHED_NONCE="$(echo "$_headers" | grep -i "Replay-Nonce:" | _head_n 1 | tr -d "\r\n " | cut -d ':' -f 2)"
_CACHED_NONCE="$(echo "$_headers" | grep -i "Replay-Nonce:" | _head_n 1 | tr -d "\r\n " | cut -d ':' -f 2
| cut -d , -f 1
)"
fi
fi
fi
fi
if [ -z "$_CACHED_NONCE" ]; then
if [ -z "$_CACHED_NONCE" ]; then
...
@@ -2118,7 +2118,7 @@ _send_signed_request() {
...
@@ -2118,7 +2118,7 @@ _send_signed_request() {
fi
fi
_debug2 response "$response"
_debug2 response "$response"
_CACHED_NONCE="$(echo "$responseHeaders" | grep -i "Replay-Nonce:" | _head_n 1 | tr -d "\r\n " | cut -d ':' -f 2)"
_CACHED_NONCE="$(echo "$responseHeaders" | grep -i "Replay-Nonce:" | _head_n 1 | tr -d "\r\n " | cut -d ':' -f 2
| cut -d , -f 1
)"
if ! _startswith "$code" "2"; then
if ! _startswith "$code" "2"; then
_body="$response"
_body="$response"
...
@@ -4720,7 +4720,7 @@ $_authorizations_map"
...
@@ -4720,7 +4720,7 @@ $_authorizations_map"
_debug2 response "$response"
_debug2 response "$response"
status=$(echo "$response" | _egrep_o '"status":"[^"]*' | cut -d : -f 2 | tr -d '"')
status=$(echo "$response" | _egrep_o '"status":"[^"]*' | cut -d : -f 2 | tr -d '"')
if
[
"$status"
=
"valid"
]
; then
if
_contains
"$status" "valid"; then
_info "$(__green Success)"
_info "$(__green Success)"
_stopserver "$serverproc"
_stopserver "$serverproc"
serverproc=""
serverproc=""
...
...
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