(client HTTPDoer)
| 201 | } |
| 202 | |
| 203 | func 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 | |
| 215 | func pluginStoreRedirectStatus(status int) bool { |
| 216 | switch status { |
no outgoing calls
no test coverage detected