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
db6db6a4
Commit
db6db6a4
authored
Mar 12, 2019
by
Sebastiaan Hoogeveen
Browse files
Removed overwriting of the HTTP header file before sending a request.
parent
b7e92dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nederhost.sh
View file @
db6db6a4
...
@@ -112,8 +112,6 @@ _nederhost_rest() {
...
@@ -112,8 +112,6 @@ _nederhost_rest() {
export
_H1
=
"Authorization: Bearer
$NederHost_Key
"
export
_H1
=
"Authorization: Bearer
$NederHost_Key
"
export
_H2
=
"Content-Type: application/json"
export
_H2
=
"Content-Type: application/json"
:>
"
$HTTP_HEADER
"
if
[
"
$m
"
!=
"GET"
]
;
then
if
[
"
$m
"
!=
"GET"
]
;
then
_debug data
"
$data
"
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$NederHost_Api
/
$ep
"
""
"
$m
"
)
"
response
=
"
$(
_post
"
$data
"
"
$NederHost_Api
/
$ep
"
""
"
$m
"
)
"
...
...
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