Skip to content

Commit 619671e

Browse files
committed
Fix: don't send bearer token to downstream
Signed-off-by: Daishan Peng <[email protected]>
1 parent 54337bc commit 619671e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@ func (p *OAuthProxy) mcpProxyHandler(c *gin.Context) {
11341134
for _, value := range values {
11351135
req.Header.Add(key, value)
11361136
}
1137+
} else {
1138+
req.Header.Del(key)
11371139
}
11381140
}
11391141
},

0 commit comments

Comments
 (0)