mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 21:22:20 +03:00
![]() 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. |
||
---|---|---|
.. | ||
curl.d | ||
isemail.d |