You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 094b8bc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(workbuddy): sanitize Claude Code billing attribution headers (#482)
Strip x-anthropic-billing-header and x-anthropic-billing-hdr from the
existing WorkBuddy WAF request-body sanitizer (hub #855 / v2.0.8) so
these reserved keys are not sent upstream as-is (400 / 11128). A
system message that is only that header is dropped, and a leading
system prompt is restored if needed to avoid empty content (11151).
Co-authored-by: caigee-cmd <210803857+caigee-cmd@users.noreply.github.com>
- WorkBuddy request-body sanitization now strips Claude Code billing attribution headers (`x-anthropic-billing-header` and `x-anthropic-billing-hdr`, hub #855 / v2.0.8). Those reserved keys used to go upstream as-is and were rejected with 400 / 11128. A system message that is only that header is dropped, and a leading system prompt is restored if needed so the empty text does not trigger 400 / 11151.
4
+
5
+
### 中文
6
+
7
+
- WorkBuddy 请求体清洗现在会去掉 Claude Code 的计费归因头(`x-anthropic-billing-header` 与 `x-anthropic-billing-hdr`,对齐 hub #855 / v2.0.8)。这两个保留键原先会原样出站,上游直接回 400 / 11128。若整条 system 消息只剩该头,会丢弃该消息并在需要时补回一条 leading system,避免空文本触发 400 / 11151。
0 commit comments