diff --git a/curl.d b/curl.d index d79f945..81d771d 100644 --- a/curl.d +++ b/curl.d @@ -65,8 +65,11 @@ struct CurlOptions { } */ -//import std.digest.md; -import std.md5; +string getDigestString(string s) { + import std.digest.md; + return toHexString(md5Of(s)); +} +//import std.md5; import std.file; /// this automatically caches to a local file for the given time. it ignores the expires header in favor of your time to keep. version(linux)