phobos/std/net
Vladimir Panteleev 94903c884a
std.net.curl: Fix fast-path check when encoding is "utf-8" (lower-case) (#10721)
For HTTP, the response body encoding is specified in the
"Content-Type" header, e.g.: "Content-Type: application/json;
charset=utf-8".

MDN says:

> - `charset`: Indicates the character encoding standard used.
>   The value is **case insensitive but lowercase is preferred**.

However, `_decodeContent` was comparing the encoding with the exact
string "UTF-8", which causes most HTTP requests to go through the slow
path.

Fix this by using `icmp`, like elsewhere in the module for
case-insensitive string comparisons.
2025-03-29 18:59:08 +08:00
..
curl.d std.net.curl: Fix fast-path check when encoding is "utf-8" (lower-case) (#10721) 2025-03-29 18:59:08 +08:00
isemail.d [std/net/isemail] Fix foreach ref index 2024-04-17 11:45:35 +02:00