Skip to content

Commit e85f625

Browse files
author
SESA826635
committed
fix(pingfed): fix error polling swipe status
1 parent 44ed068 commit e85f625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/provider/pingfed/pingfed.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ func (ac *Client) handleSwipe(ctx context.Context, doc *goquery.Document, _ *url
234234
for {
235235
time.Sleep(3 * time.Second)
236236

237-
res, err := ac.client.Do(req)
237+
clonedReq := req.Clone(req.Context())
238+
res, err := ac.client.Do(clonedReq)
238239
if err != nil {
239240
return ctx, nil, errors.Wrap(err, "error polling swipe status")
240241
}

0 commit comments

Comments
 (0)