mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
undo fix whoops ¯\_(ツ)_/¯
This commit is contained in:
parent
1e2e940b98
commit
52adb3d8b2
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -184,7 +184,7 @@ class ClientDataResolver {
|
|||
resolveFile(resource) {
|
||||
if ($string(resource)) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (/^http?:\/\//.test(resource)) {
|
||||
if (/^https?:\/\//.test(resource)) {
|
||||
request.get(resource)
|
||||
.set('Content-Type', 'blob')
|
||||
.end((err, res) => err ? reject(err) : resolve(res.body));
|
||||
|
|
|
|||
Loading…
Reference in a new issue