Commit df87fc30 authored by Charles Rendleman's avatar Charles Rendleman Committed by Lars Magne Ingebrigtsen
Browse files

(eww-download-callback): Save only the file contents

* net/eww.el (eww-download-callback): Save only the file contents,
not the headers.
parent 6019446a
2014-11-10 Charles Rendleman <carendle@gmail.com> (tiny change)
* net/eww.el (eww-download-callback): Save only the file contents,
not the headers.
2014-11-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-data): New plist to store all the data relevant
......
......@@ -1142,7 +1142,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 (point-min))
(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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment