(headers, auth)
| 17 | : `${corsProxy}/${url.replace(/^https?:\/\//, '')}` |
| 18 | |
| 19 | const updateHeaders = (headers, auth) => { |
| 20 | // Update the basic auth header |
| 21 | if (auth.username || auth.password) { |
| 22 | headers.Authorization = calculateBasicAuthHeader(auth) |
| 23 | } |
| 24 | // but any manually provided headers take precedence |
| 25 | if (auth.headers) { |
| 26 | Object.assign(headers, auth.headers) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * @param {GitHttpResponse} res |
no test coverage detected
searching dependent graphs…