summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/CaptchaService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-26 11:31:43 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-26 11:31:43 +0900
commit7131eb1827311186698ebd5aa75d30c5ceafafe4 (patch)
tree236f64150bf23d0d9572b12680c49c96674e192f /packages/backend/src/core/CaptchaService.ts
parentMerge branch 'develop' into emoji-re (diff)
downloadsharkey-7131eb1827311186698ebd5aa75d30c5ceafafe4.tar.gz
sharkey-7131eb1827311186698ebd5aa75d30c5ceafafe4.tar.bz2
sharkey-7131eb1827311186698ebd5aa75d30c5ceafafe4.zip
fix(server): turnstile-failed: missing-input-secret
Fix #9726
Diffstat (limited to 'packages/backend/src/core/CaptchaService.ts')
-rw-r--r--packages/backend/src/core/CaptchaService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/CaptchaService.ts b/packages/backend/src/core/CaptchaService.ts
index c8428a26b0..7aaa1b833f 100644
--- a/packages/backend/src/core/CaptchaService.ts
+++ b/packages/backend/src/core/CaptchaService.ts
@@ -23,9 +23,9 @@ export class CaptchaService {
const res = await this.httpRequestService.send(url, {
method: 'POST',
- body: JSON.stringify(params),
+ body: params.toString(),
headers: {
- 'Content-Type': 'application/json',
+ 'Content-Type': 'application/x-www-form-urlencoded',
},
}, { throwErrorWhenResponseNotOk: false });