aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen2016-09-10 22:09:33 +0300
committerEli Zaretskii2016-09-10 22:09:33 +0300
commit0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72 (patch)
tree9ef76ab82c9293f4db7571148cbedeb47d054720
parent0045998ac65e917bc35c6b4cc790b2f62d0243d1 (diff)
downloademacs-0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72.tar.gz
emacs-0bbdeed10f37d4ce203e1f5feb0cd7c4b5eeec72.zip
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.")
332 auth 332 auth
333 ;; Cookies 333 ;; Cookies
334 (when (url-use-cookies url-http-target-url) 334 (when (url-use-cookies url-http-target-url)
335 (url-cookie-generate-header-lines 335 (url-http--encode-string
336 host real-fname 336 (url-cookie-generate-header-lines
337 (equal "https" (url-type url-http-target-url)))) 337 host real-fname
338 (equal "https" (url-type url-http-target-url)))))
338 ;; If-modified-since 339 ;; If-modified-since
339 (if (and (not no-cache) 340 (if (and (not no-cache)
340 (member url-http-method '("GET" nil))) 341 (member url-http-method '("GET" nil)))