Skip to content

Commit

Permalink
Fix Bugzilla Issue 24458 - Mac M3 associative array keys on std.net.c…
Browse files Browse the repository at this point in the history
…url gets overwritten
  • Loading branch information
MrcSnm committed Mar 27, 2024
1 parent a2ade9d commit b9ca58d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/net/curl.d
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit b9ca58d

Please sign in to comment.