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.
- package/lib/index.js +3 -1
- 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 = {
|
|
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
|
}
|