diff options
| author | Eli Zaretskii | 2014-10-07 20:18:07 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-10-07 20:18:07 +0300 |
| commit | 8ca8fde8a2f94e9446efc5aa68020c0badeecb4d (patch) | |
| tree | 683b09b987096c460f324a7603ecccbe8a219f3c /lisp/url | |
| parent | 5bdd495965548f6b754f204080f4f1e6bec622ed (diff) | |
| download | emacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.tar.gz emacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.zip | |
Fix bug #18650 with warning about zlib when loading url-vars.el.
src/decompress.c (init_zlib_functions): Move the message about zlib
being unavailable from here...
(Fzlib_decompress_region): ...to here.
lisp/url/url-http.el (url-http-create-request): Recheck zlib availability
on windows-nt each time it might be required.
Diffstat (limited to 'lisp/url')
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 81096cfb800..21a779f85b3 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * url-http.el (url-http-create-request): Recheck zlib availability | ||
| 4 | on windows-nt each time it might be required. (Bug#18650) | ||
| 5 | |||
| 1 | 2014-09-28 Ulf Jasper <ulf.jasper@web.de> | 6 | 2014-09-28 Ulf Jasper <ulf.jasper@web.de> |
| 2 | 7 | ||
| 3 | * url-gw.el (url-open-stream): New optional parameter | 8 | * url-gw.el (url-open-stream): New optional parameter |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 9a874c25ce0..f9fbea1ba74 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -313,7 +313,14 @@ request.") | |||
| 313 | (concat | 313 | (concat |
| 314 | "From: " url-personal-mail-address "\r\n")) | 314 | "From: " url-personal-mail-address "\r\n")) |
| 315 | ;; Encodings we understand | 315 | ;; Encodings we understand |
| 316 | (if url-mime-encoding-string | 316 | (if (or url-mime-encoding-string |
| 317 | ;; MS-Windows loads zlib dynamically, so recheck | ||
| 318 | ;; in case they made it available since | ||
| 319 | ;; initialization in url-vars.el. | ||
| 320 | (and (eq 'system-type 'windows-nt) | ||
| 321 | (fboundp 'zlib-available-p) | ||
| 322 | (zlib-available-p) | ||
| 323 | (setq url-mime-encoding-string "gzip"))) | ||
| 317 | (concat | 324 | (concat |
| 318 | "Accept-encoding: " url-mime-encoding-string "\r\n")) | 325 | "Accept-encoding: " url-mime-encoding-string "\r\n")) |
| 319 | (if url-mime-charset-string | 326 | (if url-mime-charset-string |