Repository navigation
fix: 支持小写bearer和Bearer后带多个空格 && 修复 WSS预扣费错误提取key的问题 - #2513
Conversation
WalkthroughTwo files modified to improve token and header parsing: middleware/auth.go now handles Bearer prefixes case-insensitively, and service/quota.go replaces character-based prefix trimming with exact prefix removal for token key normalization. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)service/quota.go (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fix: 支持小写bearer和Bearer后带多个空格 && 修复 WSS预扣费错误提取key的问题
fix: 支持小写bearer和Bearer后带多个空格 && 修复 WSS预扣费错误提取key的问题
fix: 支持小写bearer和Bearer后带多个空格 && 修复 WSS预扣费错误提取key的问题
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.