mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 16:28:19 +00:00
fix: cdn
This commit is contained in:
parent
c6b83052a0
commit
6d42fcfb6f
3 changed files with 11 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
"cheerio": "^1.0.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"eventsource": "latest",
|
||||
"form-data": "^4.0.1",
|
||||
"ms": "^2.1.3",
|
||||
"node-cron": "^3.0.3",
|
||||
"node-ical": "^0.20.1",
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ export default class Message implements Command {
|
|||
Embed: "true",
|
||||
"No-JSON": "true",
|
||||
"Expires-At": "7d",
|
||||
...form.getHeaders(), // This will include the correct 'Content-Type' header with boundary
|
||||
},
|
||||
body: formData,
|
||||
// send the file as a multipart/form-data
|
||||
|
|
|
|||
|
|
@ -1800,6 +1800,15 @@ form-data@^4.0.0:
|
|||
combined-stream "^1.0.8"
|
||||
mime-types "^2.1.12"
|
||||
|
||||
form-data@^4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48"
|
||||
integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==
|
||||
dependencies:
|
||||
asynckit "^0.4.0"
|
||||
combined-stream "^1.0.8"
|
||||
mime-types "^2.1.12"
|
||||
|
||||
formdata-node@^4.3.2:
|
||||
version "4.4.1"
|
||||
resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-4.4.1.tgz#23f6a5cb9cb55315912cbec4ff7b0f59bbd191e2"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue