summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@toke.dk>2016-09-10 22:09:33 +0300
committerEli Zaretskii <eliz@gnu.org>2016-09-10 22:09:33 +0300
commit0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72 (patch)
tree9ef76ab82c9293f4db7571148cbedeb47d054720
parent0045998ac65e917bc35c6b4cc790b2f62d0243d1 (diff)
downloademacs-0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72.tar.gz
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
-rw-r--r--lisp/url/url-http.el7
1 files 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)))