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
This commit is contained in:
parent
0045998ac6
commit
0bbdeed10f
1 changed files with 4 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue