(req *http.Request)
| 230 | } |
| 231 | |
| 232 | func (t telemetryDisablerTransport) RoundTrip(req *http.Request) (*http.Response, error) { |
| 233 | // If the request is aimed at an enterprise host, disable telemetry. |
| 234 | // Currently, requests that are sent to configured api_hosts will be treated as enterprise hosts, |
| 235 | // even though they may be GHEC with Data Residency. |
| 236 | if ghauth.IsEnterprise(getHostname(req)) { |
| 237 | t.telemetryDisabler.Disable() |
| 238 | } |
| 239 | return t.wrappedTransport.RoundTrip(req) |
| 240 | } |
nothing calls this directly
no test coverage detected