Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions proxy_server/proxy_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func newProxyServer() *proxyServer {
reverseProxy.Rewrite = func(req *httputil.ProxyRequest) {
req.SetURL(targetUrl)
req.Out.Header.Set("Authorization", "Bearer "+apiKey)
// This is needed because the tests started randomly failing from
// 23 Jan 2026 (https://github.com/codecrafters-io/claude-code-tester/actions/runs/21276441088/job/61237125153?pr=5)
req.Out.Header.Del("x-anthropic-billing-header")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspicious header name with redundant suffix

Medium Severity

The header name x-anthropic-billing-header ends with -header, which is redundant and non-standard in HTTP header naming conventions. Standard headers like Authorization, Content-Type, or custom headers like X-API-Key never include -header in their names. This header isn't documented or referenced elsewhere in the codebase, and no external documentation confirms this exact name. If the actual header has a different name (like X-Anthropic-Billing), this deletion won't work and the proxy fix will fail.

Fix in Cursor Fix in Web

}

validator := &validationMiddleware{}
Expand Down
Loading