( endpoint: string, response: Response )
| 2389 | } |
| 2390 | |
| 2391 | function tryUpdateEndpointVersionFromResponse( |
| 2392 | endpoint: string, |
| 2393 | response: Response |
| 2394 | ) { |
| 2395 | const gheVersion = response.headers.get('x-github-enterprise-version') |
| 2396 | if (gheVersion !== null) { |
| 2397 | updateEndpointVersion(endpoint, gheVersion) |
| 2398 | } |
| 2399 | } |
| 2400 | |
| 2401 | const knownThirdPartyHosts = new Set([ |
| 2402 | 'dev.azure.com', |
no test coverage detected