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
63a195e5
Commit
63a195e5
authored
Jun 17, 2016
by
neil
Browse files
minor: fix user-agent string.
parent
e22bcf7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
63a195e5
...
@@ -633,9 +633,9 @@ _post() {
...
@@ -633,9 +633,9 @@ _post() {
_CURL
=
"
$CURL
--dump-header
$HTTP_HEADER
"
_CURL
=
"
$CURL
--dump-header
$HTTP_HEADER
"
_debug
"_CURL"
"
$_CURL
"
_debug
"_CURL"
"
$_CURL
"
if
[
"
$needbase64
"
]
;
then
if
[
"
$needbase64
"
]
;
then
response
=
"
$(
$_CURL
-
A
"U
ser-
A
gent
:
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
| _base64
)
"
response
=
"
$(
$_CURL
-
-u
ser-
a
gent
"
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
| _base64
)
"
else
else
response
=
"
$(
$_CURL
-
A
"U
ser-
A
gent
:
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
)
"
response
=
"
$(
$_CURL
-
-u
ser-
a
gent
"
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
)
"
fi
fi
_ret
=
"
$?
"
_ret
=
"
$?
"
else
else
...
@@ -670,9 +670,9 @@ _get() {
...
@@ -670,9 +670,9 @@ _get() {
if
_exists
"curl"
;
then
if
_exists
"curl"
;
then
_debug
"CURL"
"
$CURL
"
_debug
"CURL"
"
$CURL
"
if
[
"
$onlyheader
"
]
;
then
if
[
"
$onlyheader
"
]
;
then
$CURL
-I
-
A
"U
ser-
A
gent
:
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
$CURL
-I
-
-u
ser-
a
gent
"
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
else
else
$CURL
-
A
"U
ser-
A
gent
:
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
$CURL
-
-u
ser-
a
gent
"
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
fi
fi
ret
=
$?
ret
=
$?
else
else
...
...
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