Skip to content

Commit 10e3202

Browse files
committed
fix: Fix the issue of accidentally losing 'x-custom-auth-header'
1 parent 2870441 commit 10e3202

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/lib/hooks/useConnection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export function useConnection({
301301
// Add custom header name as a special request header to let the server know which header to pass through
302302
if (authHeaderName.toLowerCase() !== "authorization") {
303303
headers[authHeaderName] = token;
304+
headers["x-custom-auth-header"] = authHeaderName;
304305
} else {
305306
headers[authHeaderName] = `Bearer ${token}`;
306307
}

0 commit comments

Comments
 (0)