Download a file

I’m trying to use the http.downloadUrl method in order to download a file, but always get an exception:

“Stream does not support reading.”

What’s wrong?

Fixed in git. thanks.