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
c07db3aa
Unverified
Commit
c07db3aa
authored
Nov 28, 2022
by
Arash Hatami
Browse files
add 'Accept' header
parent
4610204c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_arvan.sh
View file @
c07db3aa
...
@@ -141,10 +141,11 @@ _arvan_rest() {
...
@@ -141,10 +141,11 @@ _arvan_rest() {
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
elif
[
"
$mtd
"
=
"POST"
]
;
then
elif
[
"
$mtd
"
=
"POST"
]
;
then
export
_H2
=
"Content-Type: application/json"
export
_H2
=
"Content-Type: application/json"
export
_H3
=
"Accept: application/json"
_debug data
"
$data
"
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
else
else
response
=
"
$(
_get
"
$ARVAN_API_URL
/
$ep$data
"
)
"
response
=
"
$(
_get
"
$ARVAN_API_URL
/
$ep$data
"
)
"
fi
fi
return
0
return
0
}
}
\ No newline at end of file
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