File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,16 @@ func (g *RepositoryDumper) handlePullRequest(pr *base.PullRequest) error {
444444
445445 // SECURITY: We will assume that the pr.PatchURL has been checked
446446 // pr.PatchURL maybe a local file - but note EnsureSafe should be asserting that this safe
447- resp , err := http .Get (u ) // TODO: This probably needs to use the downloader as there may be rate limiting issues here
447+ httpClient := NewMigrationHTTPClient ()
448+
449+ req , err := http .NewRequest ("GET" , u , nil )
450+ if err != nil {
451+ return err
452+ }
453+ req = req .WithContext (g .ctx )
454+ resp , err := httpClient .Do (req )
455+
456+ // resp, err := http.Get(u) // TODO: This probably needs to use the downloader as there may be rate limiting issues here
448457 if err != nil {
449458 return err
450459 }
You can’t perform that action at this time.
0 commit comments