feat: 为 GoToSocial API 请求添加 User-Agent 标识

This commit is contained in:
2026-01-20 11:42:23 +08:00
parent 2d3be3e2af
commit 2cb67635a6

View File

@@ -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,