(req *http.Request)
| 16 | ) |
| 17 | |
| 18 | func Do(req *http.Request) (*http.Response, error) { |
| 19 | if req.Header.Get("Content-Type") == "" { |
| 20 | req.Header.Set("Content-Type", "application/json") |
| 21 | } |
| 22 | req.Header.Set("Accept", "application/json") |
| 23 | req.Header.Add("User-Agent", "Scalingo CLI v"+config.Version) |
| 24 | return client.Do(req) |
| 25 | } |
no outgoing calls
no test coverage detected