Skip to content

Commit 6a63c44

Browse files
authored
fix: forward x-audit-log-reason header (#9889)
fix(proxy): forward x-audit-log-reason header
1 parent 8964504 commit 6a63c44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/proxy/src/handlers/proxyRequests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export function proxyRequests(rest: REST): RequestHandler {
3232
headers.authorization = req.headers.authorization;
3333
}
3434

35+
if (req.headers['x-audit-log-reason']) {
36+
headers['x-audit-log-reason'] = req.headers['x-audit-log-reason'] as string;
37+
}
38+
3539
try {
3640
const discordResponse = await rest.queueRequest({
3741
body: req,

0 commit comments

Comments
 (0)