(status int)
| 213 | } |
| 214 | |
| 215 | func 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 | |
| 224 | func pluginStoreRedirectURL(resp *http.Response, requestURL string) (string, error) { |
| 225 | location := strings.TrimSpace(resp.Header.Get("Location")) |