(t *Transfer, req *http.Request)
| 225 | } |
| 226 | |
| 227 | func (a *adapterBase) doHTTP(t *Transfer, req *http.Request) (*http.Response, error) { |
| 228 | if t.Authenticated { |
| 229 | return a.apiClient.Do(req) |
| 230 | } |
| 231 | endpoint := endpointURL(req.URL.String(), t.Oid) |
| 232 | return a.apiClient.DoWithAuthNoRetry(a.remote, a.apiClient.Endpoints.AccessFor(endpoint), req) |
| 233 | } |
| 234 | |
| 235 | func advanceCallbackProgress(cb ProgressCallback, t *Transfer, numBytes int64) { |
| 236 | if cb != nil { |
no test coverage detected