Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
9f43c270
Commit
9f43c270
authored
Oct 03, 2016
by
neil
Browse files
fix wget
parent
50827188
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
9f43c270
...
...
@@ -952,6 +952,10 @@ _post() {
fi
fi
_ret
=
"
$?
"
if
[
"
$_ret
"
=
"8"
]
;
then
_ret
=
0
_debug
"wget returns 8, the server returns a 'Bad request' respons, lets process the response later."
fi
if
[
"
$_ret
"
!=
"0"
]
;
then
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$_ret
"
fi
...
...
@@ -1008,6 +1012,10 @@ _get() {
$_WGET
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H5
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
-O
-
$url
fi
ret
=
$?
if
[
"
$_ret
"
=
"8"
]
;
then
_ret
=
0
_debug
"wget returns 8, the server returns a 'Bad request' respons, lets process the response later."
fi
if
[
"
$ret
"
!=
"0"
]
;
then
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$ret
"
fi
...
...
@@ -1068,7 +1076,7 @@ _send_signed_request() {
response
=
"
$(
_post
"
$body
"
$url
"
$needbase64
"
)
"
if
[
"
$?
"
!=
"0"
]
;
then
_err
"Can not post to
$url
.
"
_err
"Can not post to
$url
"
return
1
fi
_debug2 original
"
$response
"
...
...
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