mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-06-22 06:57:37 +08:00
- 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.
7 lines
181 B
Go
7 lines
181 B
Go
package pluginhost
|
|
|
|
// SupportPluginHeaderValue reports whether the current binary was built with CGO enabled.
|
|
func SupportPluginHeaderValue() string {
|
|
return supportPluginValue
|
|
}
|