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

Function pluginStoreRedirectStatus

internal/pluginstore/github.go:215–222  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

213}
214
215func pluginStoreRedirectStatus(status int) bool {
216 switch status {
217 case http.StatusMovedPermanently, http.StatusFound, http.StatusSeeOther, http.StatusTemporaryRedirect, http.StatusPermanentRedirect:
218 return true
219 default:
220 return false
221 }
222}
223
224func pluginStoreRedirectURL(resp *http.Response, requestURL string) (string, error) {
225 location := strings.TrimSpace(resp.Header.Get("Location"))

Callers 1

getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected