[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18007: 24.3.92: eww-download-callback, patch included
From: |
Charles Rendleman |
Subject: |
bug#18007: 24.3.92: eww-download-callback, patch included |
Date: |
Sat, 12 Jul 2014 17:30:43 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (darwin) |
Originally filed incorrectly under Emacs 23; this bug is with the
24.3.92 pretest
eww-download-callback should remove the HTTP header before saving the file
after a download.
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 02fc575..cff85a5 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1075,7 +1075,9 @@ Differences in #targets are ignored."
(path (car (url-path-and-query obj)))
(file (eww-make-unique-file-name (file-name-nondirectory path)
eww-download-directory)))
- (write-file file)
+ (goto-char 0)
+ (re-search-forward "\r?\n\r?\n")
+ (write-region (point) (point-max) file)
(message "Saved %s" file))))
(defun eww-make-unique-file-name (file directory)
- bug#18007: 24.3.92: eww-download-callback, patch included,
Charles Rendleman <=