()
| 178 | } |
| 179 | |
| 180 | func (c Client) userAgent() string { |
| 181 | if strings.TrimSpace(c.UserAgent) != "" { |
| 182 | return strings.TrimSpace(c.UserAgent) |
| 183 | } |
| 184 | return userAgent |
| 185 | } |
| 186 | |
| 187 | func pluginStoreGetNoRedirect(ctx context.Context, client HTTPDoer, requestURL string, headers http.Header) (*http.Response, error) { |
| 188 | if client == nil { |