Merge branch 'main' into dev

This commit is contained in:
Cohee
2023-06-04 04:29:46 +03:00
4 changed files with 6 additions and 5 deletions

View File

@@ -2805,7 +2805,8 @@ function putAsync(url, args) {
}
async function postAsync(url, args) {
const response = await fetch(url, { method: 'POST', ...args });
const fetch = require('node-fetch').default;
const response = await fetch(url, { method: 'POST', timeout: 0, ...args });
if (response.ok) {
const data = await response.json();