(t *Transfer, req *http.Request)
| 278 | } |
| 279 | |
| 280 | func (a *basicDownloadAdapter) makeRequest(t *Transfer, req *http.Request) (*http.Response, error) { |
| 281 | res, err := a.doHTTP(t, req) |
| 282 | if errors.IsAuthError(err) && len(req.Header.Get("Authorization")) == 0 { |
| 283 | return a.makeRequest(t, req) |
| 284 | } |
| 285 | |
| 286 | return res, err |
| 287 | } |
no test coverage detected