MCPcopy
hub / github.com/git-lfs/git-lfs / makeRequest

Method makeRequest

tq/basic_download.go:280–287  ·  view source on GitHub ↗
(t *Transfer, req *http.Request)

Source from the content-addressed store, hash-verified

278}
279
280func (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}

Callers 1

downloadMethod · 0.95

Calls 3

IsAuthErrorFunction · 0.92
doHTTPMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected