hythm7 / Pakku

Package Manager for the Raku Programming Language
Artistic License 2.0
26 stars 3 forks source link

wrap `curl.setopt: :$URL` in Retry block #15

Closed hythm7 closed 3 years ago

hythm7 commented 3 years ago

Looks like if $curl.perform failed the first time, retrying $curl.perform without $curl.setopt: :$URL, :$download returns empty content.

This behavior happens only when downloading a file, it doesn't show with $curl.preform.content

To be more precise, download opt need to be set every time $curl.perform is called;