From: Charles Rendleman <carendle@gmail.com>
To: 17914@debbugs.gnu.org
Subject: bug#17914: 23.3;92: eww-download-callback
Date: Thu, 3 Jul 2014 11:41:08 -0400 [thread overview]
Message-ID: <CALiJhZ7UvBud-xQxCDoCVz_XHzWOi7swYvbyLJuPa14CVpbQig@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
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)
[-- Attachment #2: Type: text/html, Size: 916 bytes --]
reply other threads:[~2014-07-03 15:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALiJhZ7UvBud-xQxCDoCVz_XHzWOi7swYvbyLJuPa14CVpbQig@mail.gmail.com \
--to=carendle@gmail.com \
--cc=17914@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.