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
53323871
Unverified
Commit
53323871
authored
May 02, 2017
by
Matthew Turney
Browse files
Use _post to send a DELETE request for DNSimple record removal.
parent
5b21cbe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dnsimple.sh
View file @
53323871
...
...
@@ -198,12 +198,12 @@ _dnsimple_rest() {
export
_H1
=
"Accept: application/json"
export
_H2
=
"Authorization: Bearer
$DNSimple_OAUTH_TOKEN
"
if
[
"
$data
"
]
;
then
if
[
"
$data
"
]
||
[
"
$method
"
=
"DELETE"
]
;
then
_H1
=
"Content-Type: application/json"
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$request_url
"
""
"
$method
"
)
"
else
response
=
"
$(
_
reques
t
"
$request_url
"
""
""
"
$method
"
)
"
response
=
"
$(
_
ge
t
"
$request_url
"
""
""
"
$method
"
)
"
fi
if
[
"
$?
"
!=
"0"
]
;
then
...
...
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