Files
CLIProxyAPI/internal/pluginhost/support.go
Luis Pater 049ced5c3f feat(pluginhost, api): add support for "X-CPA-SUPPORT-PLUGIN" header with CGO detection
- Introduced `SupportPluginHeaderValue` to indicate CGO build status (`1` for enabled, `0` for disabled).
- Updated API response headers in `handler.go` to include "X-CPA-SUPPORT-PLUGIN".
- Added unit tests to verify proper header behavior under varying conditions.
2026-06-12 23:54:26 +08:00

7 lines
181 B
Go

package pluginhost
// SupportPluginHeaderValue reports whether the current binary was built with CGO enabled.
func SupportPluginHeaderValue() string {
return supportPluginValue
}