koishi-plugin-github-webhook-pusher 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -612,7 +612,9 @@ function registerWebhook(ctx, config) {
612
612
  if (!verifySignature(rawBody, signature, config.secret)) {
613
613
  logger2.warn("签名验证失败");
614
614
  koaCtx.status = 401;
615
- koaCtx.body = { error: "Invalid signature" };
615
+ koaCtx.body = {
616
+ error: "Invalid signature. Ensure Content-Type is application/json, and the signed payload matches the raw request body. 签名无效:请确认 Content-Type 为 application/json,且签名内容与实际请求体完全一致。"
617
+ };
616
618
  return;
617
619
  }
618
620
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-github-webhook-pusher",
3
3
  "description": "GitHub Webhook 事件推送插件",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "contributors": [
6
6
  "ClozyA <aoxuan233@gmail.com>"
7
7
  ],