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

Function pluginStoreNoRedirectClient

internal/pluginstore/github.go:203–213  ·  view source on GitHub ↗
(client HTTPDoer)

Source from the content-addressed store, hash-verified

201}
202
203func pluginStoreNoRedirectClient(client HTTPDoer) HTTPDoer {
204 httpClient, ok := client.(*http.Client)
205 if !ok {
206 return client
207 }
208 clone := *httpClient
209 clone.CheckRedirect = func(*http.Request, []*http.Request) error {
210 return http.ErrUseLastResponse
211 }
212 return &clone
213}
214
215func pluginStoreRedirectStatus(status int) bool {
216 switch status {

Callers 1

pluginStoreGetNoRedirectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected