MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newStreamBootstrapError

Function newStreamBootstrapError

sdk/cliproxy/auth/conductor.go:1668–1676  ·  view source on GitHub ↗
(err error, headers http.Header)

Source from the content-addressed store, hash-verified

1666}
1667
1668func newStreamBootstrapError(err error, headers http.Header) error {
1669 if err == nil {
1670 return nil
1671 }
1672 return &streamBootstrapError{
1673 cause: err,
1674 headers: cloneHTTPHeader(headers),
1675 }
1676}
1677
1678func (e *streamBootstrapError) Error() string {
1679 if e == nil || e.cause == nil {

Calls 1

cloneHTTPHeaderFunction · 0.70