Skip to content

Commit 5fdaa73

Browse files
authored
Merge pull request #5 from obot-platform/count-lower-case
Fix: make sure to count for lower case
2 parents 4b97535 + 228c0d9 commit 5fdaa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ func (p *OAuthProxy) mcpProxyHandler(c *gin.Context) {
11301130

11311131
// Forward original headers
11321132
for key, values := range c.Request.Header {
1133-
if key != "Authorization" { // Don't forward our Bearer token
1133+
if strings.ToLower(key) != "authorization" { // Don't forward our Bearer token
11341134
for _, value := range values {
11351135
req.Header.Add(key, value)
11361136
}

0 commit comments

Comments
 (0)