|
From: | Dmitry Gutov |
Subject: | Re: bug#23750: 25.0.95; bug in url-retrieve or json.el |
Date: | Sat, 3 Dec 2016 01:13:33 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 |
On 02.12.2016 18:31, Lars Ingebrigtsen wrote:
Normal web applications require that you URL-encode (or similar) any data you send to them. These encodings are ASCII only. Here's a typical example of how this is used: (let ((url-request-method "POST") (url-request-extra-headers (list (cons "Content-Type" (concat "multipart/form-data; boundary=" boundary)))) (url-request-data (mm-url-encode-multipart-form-data values boundary)))
Thanks!
The output from mm-url-encode-multipart-form-data is ASCII, and is typically multibyte.
If we make the proposed change, this function will violate the contract on url-request-data (if the described above is its main use case).
Luckily, this function is part of Emacs, so we can fix it in the same patch.
[Prev in Thread] | Current Thread | [Next in Thread] |