]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'url-http-create-request' when cookies are used
authorToke Høiland-Jørgensen <toke@toke.dk>
Sat, 10 Sep 2016 19:09:33 +0000 (22:09 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Sep 2016 19:09:33 +0000 (22:09 +0300)
* lisp/url/url-http.el (url-http-create-request): Make sure the
cookie headers are a unibyte string.  For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00202.html.

Copyright-paperwork-exempt: yes

lisp/url/url-http.el

index bbe5268e4dfb774b906f7c109459109ca1dbb2cc..8f36ddeafbf1be37b9b571685d67153d6b0a2d9b 100644 (file)
@@ -332,9 +332,10 @@ request.")
              auth
              ;; Cookies
             (when (url-use-cookies url-http-target-url)
-              (url-cookie-generate-header-lines
-               host real-fname
-               (equal "https" (url-type url-http-target-url))))
+               (url-http--encode-string
+                (url-cookie-generate-header-lines
+                 host real-fname
+                 (equal "https" (url-type url-http-target-url)))))
              ;; If-modified-since
              (if (and (not no-cache)
                       (member url-http-method '("GET" nil)))