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 {
444
444
445
445
// SECURITY: We will assume that the pr.PatchURL has been checked
446
446
// 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
448
457
if err != nil {
449
458
return err
450
459
}
You can’t perform that action at this time.
0 commit comments