From: Toke Høiland-Jørgensen Date: Sat, 10 Sep 2016 19:09:33 +0000 (+0300) Subject: Fix 'url-http-create-request' when cookies are used X-Git-Tag: emacs-25.1~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0bbdeed;p=emacs.git 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 --- 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)))