дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
The HTTP client decoded every response body as lossy UTF-8, so a GBK, Shift_JIS or ISO-8859-1 page showed replacement characters, and a body that was valid text in its declared charset could be taken for binary. Bodies are now decoded with encoding_rs in the encoding of their byte order mark, else the Content-Type charset, else an HTML <meta> or XML declaration, else UTF-8; the binary check uses the declared charset too. Form-urlencoded bodies written one parameter per line (key = value &, as the "separate lines" layout writes them) were sent with line breaks and spaces around the separators. Each run of text lines is now joined and the whitespace around & and a parameter's first = dropped; variable values, included files and whitespace inside names and values are sent as they are. Co-authored-by: ntbang0901 <[email protected]>