diff --git a/std/net/curl.d b/std/net/curl.d index 6aec366c657..7d93438f4b9 100644 --- a/std/net/curl.d +++ b/std/net/curl.d @@ -2449,6 +2449,9 @@ struct HTTP auto m = header.findSplit(": "); auto fieldName = m[0].toLower(); + ///Fixes https://issues.dlang.org/show_bug.cgi?id=24458 + if (fieldName is m[0]) + fieldName = fieldName.idup; auto fieldContent = m[2].chomp; if (fieldName == "content-type") {