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