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
9ace7db2
Commit
9ace7db2
authored
Feb 15, 2019
by
Augustin-FL
Browse files
simplify online_rest
parent
84151350
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_online.sh
View file @
9ace7db2
...
@@ -202,7 +202,7 @@ _online_rest() {
...
@@ -202,7 +202,7 @@ _online_rest() {
_debug2 _online_url
"
$_online_url
"
_debug2 _online_url
"
$_online_url
"
export
_H1
=
"Authorization: Bearer
$ONLINE_API_KEY
"
export
_H1
=
"Authorization: Bearer
$ONLINE_API_KEY
"
export
_H2
=
"X-Pretty-JSON: 1"
export
_H2
=
"X-Pretty-JSON: 1"
if
[
"
$data
"
]
||
[
"
$m
"
=
"
PATCH"
]
||
[
"
$m
"
=
"POST"
]
||
[
"
$m
"
=
"PUT"
]
||
[
"
$m
"
=
"DEL
ET
E
"
]
;
then
if
[
"
$data
"
]
||
[
"
$m
"
!
=
"
G
ET"
]
;
then
_debug data
"
$data
"
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$_online_url
"
""
"
$m
"
)
"
response
=
"
$(
_post
"
$data
"
"
$_online_url
"
""
"
$m
"
)
"
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