mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 13:31:18 +00:00
dev_mythic_beasts: Fix header name: Accepts => Accept (#6428)
This commit is contained in:
1 parent
20254cbaf0
commit
0ce8c24736
1 file changed
+3
-3
@@ -186,7 +186,7 @@ _oauth2() {
|
|||||||
_oauth2_std() {
|
_oauth2_std() {
|
||||||
# HTTP Basic Authentication
|
# HTTP Basic Authentication
|
||||||
_H1="Authorization: Basic $(echo "$MB_AK:$MB_AS" | _base64)"
|
_H1="Authorization: Basic $(echo "$MB_AK:$MB_AS" | _base64)"
|
||||||
_H2="Accepts: application/json"
|
_H2="Accept: application/json"
|
||||||
export _H1 _H2
|
export _H1 _H2
|
||||||
body="grant_type=client_credentials"
|
body="grant_type=client_credentials"
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ _oauth2_std() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_oauth2_github() {
|
_oauth2_github() {
|
||||||
_H1="Accepts: application/json"
|
_H1="Accept: application/json"
|
||||||
export _H1
|
export _H1
|
||||||
body="{\"login\":{\"handle\":\"$MB_AK\",\"pass\":\"$MB_AS\",\"floating\":1}}"
|
body="{\"login\":{\"handle\":\"$MB_AK\",\"pass\":\"$MB_AS\",\"floating\":1}}"
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ _mb_rest() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_H1="Authorization: Bearer $MB_TK"
|
_H1="Authorization: Bearer $MB_TK"
|
||||||
_H2="Accepts: application/json"
|
_H2="Accept: application/json"
|
||||||
export _H1 _H2
|
export _H1 _H2
|
||||||
if [ "$data" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then
|
if [ "$data" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then
|
||||||
# body url [needbase64] [POST|PUT|DELETE] [ContentType]
|
# body url [needbase64] [POST|PUT|DELETE] [ContentType]
|
||||||
|
|||||||