Commit 0bbdeed1 authored by Toke Høiland-Jørgensen's avatar Toke Høiland-Jørgensen Committed by Eli Zaretskii

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
parent 0045998a
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment