Merge pull request #453 from Geod24/dip1000

dget: Use explicit storage classes in delegate
This commit is contained in:
Nicholas Wilson 2022-10-26 20:16:21 +08:00 committed by GitHub
commit 1b3630b14c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
dget.d
View file

@ -110,7 +110,7 @@ ubyte[] download(string url)
auto http = HTTP(url);
http.method = HTTP.Method.get;
http.onReceiveHeader((k, v)
http.onReceiveHeader((in k, in v)
{
if (k == "content-length")
contentLength = to!size_t(v);