feat: proxy container (#8000)

This commit is contained in:
DD
2022-06-18 00:29:50 +03:00
committed by GitHub
parent 0a138dab95
commit 2681929e42
25 changed files with 652 additions and 7 deletions

View File

@@ -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);