From 0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Sat, 10 Sep 2016 22:09:33 +0300 Subject: [PATCH] Fix 'url-http-create-request' when cookies are used * 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index bbe5268e4df..8f36ddeafbf 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -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))) -- 2.39.5