Skip to content

Commit

Permalink
uws getHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
MARCROCK22 committed Nov 21, 2024
1 parent c009705 commit d95c803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/proxy/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function createProxy(options: {
const method = <HttpMethods>req.getMethod().toUpperCase();
const query = new URLSearchParams(req.getQuery());
const path = <`/${string}`>req.getUrl().slice(sliceLength);
const reason = req.getHeader('x-audit-log-reason');
if (method !== 'GET' && method !== 'DELETE') {
const contentType = req.getHeader('content-type');
if (contentType.includes('multipart/form-data')) {
Expand All @@ -62,7 +63,6 @@ export function createProxy(options: {
} else body = await readJson(res);
}
try {
const reason = req.getHeader('x-audit-log-reason');
const result = await rest.request(method, path, {
body,
files,
Expand Down

0 comments on commit d95c803

Please sign in to comment.