mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 12:40:21 +03:00
dget: Use explicit storage classes in delegate
Those become required when using the latest compiler with DIP1000.
This commit is contained in:
parent
70e81c1c79
commit
9ce2e7515e
1 changed files with 1 additions and 1 deletions
2
dget.d
2
dget.d
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue