Fix ubyte[] download overload by avoiding a cast
We were using the default template parameter, `char`,
and as the documentation for `get` states:
> If asking for char, content will be converted from
> the connection character set (specified in HTTP
> response headers or FTP connection properties,
> both ISO-8859-1 by default) to UTF-8.

However we are downloading a binary so converting
it to UTF-8 will fail. Especially if we intend
to cast it to `ubyte[]` afterwards.
1 parent 6fcfc25 commit c79adb2d4cf884e146f3960ada94340a99e84442
@Mathias Lang Mathias Lang authored on 22 Feb 2024
Mathias LANG committed on 24 Feb 2024
Showing 1 changed file
View
source/dub/internal/utils.d