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
d529eb6d
Commit
d529eb6d
authored
Aug 14, 2016
by
neil
Browse files
minor
parent
fac1e367
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
d529eb6d
...
@@ -824,6 +824,7 @@ _post() {
...
@@ -824,6 +824,7 @@ _post() {
return
$_ret
return
$_ret
}
}
# url getheader timeout
# url getheader timeout
_get
()
{
_get
()
{
_debug GET
_debug GET
...
@@ -848,7 +849,7 @@ _get() {
...
@@ -848,7 +849,7 @@ _get() {
fi
fi
ret
=
$?
ret
=
$?
if
[
"
$ret
"
!=
"0"
]
;
then
if
[
"
$ret
"
!=
"0"
]
;
then
_err
"Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code:
$
_
ret
"
_err
"Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code:
$ret
"
if
[
"
$DEBUG
"
]
&&
[
"
$DEBUG
"
-ge
"2"
]
;
then
if
[
"
$DEBUG
"
]
&&
[
"
$DEBUG
"
-ge
"2"
]
;
then
_err
"Here is the curl dump log:"
_err
"Here is the curl dump log:"
_err
"
$(
cat
"
$_CURL_DUMP
"
)
"
_err
"
$(
cat
"
$_CURL_DUMP
"
)
"
...
@@ -867,7 +868,7 @@ _get() {
...
@@ -867,7 +868,7 @@ _get() {
fi
fi
ret
=
$?
ret
=
$?
if
[
"
$ret
"
!=
"0"
]
;
then
if
[
"
$ret
"
!=
"0"
]
;
then
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$
_
ret
"
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$ret
"
fi
fi
else
else
ret
=
$?
ret
=
$?
...
...
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