feat: 为 GoToSocial API 请求添加 User-Agent 标识
This commit is contained in:
1 parent
2d3be3e2af
commit
2cb67635a6
1 file changed
+1
@@ -186,6 +186,7 @@ async function sendToGoToSocial(message, env) {
|
|||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`,
|
Authorization: `Bearer ${token}`,
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
"User-Agent": "wps-gotosocial-bot/1.0",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
status: message,
|
status: message,
|
||||||
|
|||||||
Reference in new issue
Block a user