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
refactor(headers): centralize custom HTTP headers into dedicated package (#362)
- Create new pkg/headers package to manage all x-* prefixed headers
- Define constants for request, VSR decision tracking, and security headers
- Update security headers to use x-vsr-* prefix for consistency
- x-pii-violation -> x-vsr-pii-violation
- x-jailbreak-blocked -> x-vsr-jailbreak-blocked
- x-jailbreak-type -> x-vsr-jailbreak-type
- x-jailbreak-confidence -> x-vsr-jailbreak-confidence
- Replace all string literals with constants across codebase
- Fix variable naming conflict in request_handler.go
BREAKING CHANGE: Security header names changed from x-* to x-vsr-* prefix.
Clients consuming these headers must update to use new names.
Signed-off-by: bitliu <[email protected]>
0 commit comments