mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
feat: proxy container (#8000)
This commit is contained in:
@@ -33,6 +33,9 @@ export function proxyRequests(rest: REST): RequestHandler {
|
||||
// This type cast is technically incorrect, but we want Discord to throw Method Not Allowed for us
|
||||
method: method as RequestMethod,
|
||||
passThroughBody: true,
|
||||
headers: {
|
||||
'Content-Type': req.headers['content-type']!,
|
||||
},
|
||||
});
|
||||
|
||||
await populateSuccessfulResponse(res, discordResponse);
|
||||
|
||||
Reference in New Issue
Block a user