Skip to content

Commit

Permalink
Updates fetch regex based on comment on upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
vsreekanti committed Jun 10, 2022
1 parent aa0a1d3 commit 97edf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (e *httpError) Error() string {
}

// linkRE provides parsing of the "Link" HTTP header directive.
var linkRE = regexp.MustCompile(`^<(.*)>; rel="next", <(.*)>; rel="last".*`)
var linkRE = regexp.MustCompile(`^.*<(.*)>; rel="next", <(.*)>; rel="last".*`)

// fetchURL fetches the specified URL. The cache (specified in
// c.CacheDir) is consulted first and if not found, the specified URL
Expand Down

0 comments on commit 97edf42

Please sign in to comment.