]> git.eshelyaron.com Git - emacs.git/commitdiff
Further fix for 'url-http-create-request' and multibyte strings
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Aug 2016 08:28:53 +0000 (11:28 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Aug 2016 08:28:53 +0000 (11:28 +0300)
* lisp/url/url-http.el (url-http-create-request): Run
url-mime-charset-string through url-http--encode-string.
(Bug#24117)

lisp/url/url-http.el

index 860e652936568241d9c327133f337a9550b829c3..bbe5268e4dfb774b906f7c109459109ca1dbb2cc 100644 (file)
@@ -315,7 +315,9 @@ request.")
                   "Accept-encoding: " url-mime-encoding-string "\r\n"))
              (if url-mime-charset-string
                  (concat
-                  "Accept-charset: " url-mime-charset-string "\r\n"))
+                  "Accept-charset: "
+                  (url-http--encode-string url-mime-charset-string)
+                  "\r\n"))
              ;; Languages we understand
              (if url-mime-language-string
                  (concat