diff options
| author | Magnus Henoch | 2008-03-09 20:16:12 +0000 |
|---|---|---|
| committer | Magnus Henoch | 2008-03-09 20:16:12 +0000 |
| commit | 84f089d3fb26708efdab41f823e65af718bb6cf8 (patch) | |
| tree | c99c78e21382330076c23bf7b825b2adc26b952c /lisp/url | |
| parent | c102c94f1a79eca4ac60578a5a1d41d1f67b3e9b (diff) | |
| download | emacs-84f089d3fb26708efdab41f823e65af718bb6cf8.tar.gz emacs-84f089d3fb26708efdab41f823e65af718bb6cf8.zip | |
(url-http-chunked-encoding-after-change-function):
Remove superfluous CRLF at end of file. (bug #42)
Diffstat (limited to 'lisp/url')
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 69f5a5c295a..531dce8e728 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-09 Magnus Henoch <mange@freemail.hu> | ||
| 2 | |||
| 3 | * url-http.el (url-http-chunked-encoding-after-change-function): | ||
| 4 | Remove superfluous CRLF at end of file. (bug #42) | ||
| 5 | |||
| 1 | 2008-03-02 Andreas Schwab <schwab@suse.de> | 6 | 2008-03-02 Andreas Schwab <schwab@suse.de> |
| 2 | 7 | ||
| 3 | * url-util.el: Require cl when compiling. | 8 | * url-util.el: Require cl when compiling. |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 7b29eba05ef..c9cecea65c1 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -948,7 +948,11 @@ the end of the document." | |||
| 948 | (url-http-debug "Saw end of stream chunk!") | 948 | (url-http-debug "Saw end of stream chunk!") |
| 949 | (setq read-next-chunk nil) | 949 | (setq read-next-chunk nil) |
| 950 | (url-display-percentage nil nil) | 950 | (url-display-percentage nil nil) |
| 951 | (goto-char (match-end 1)) | 951 | ;; Every chunk, even the last 0-length one, is |
| 952 | ;; terminated by CRLF. Skip it. | ||
| 953 | (when (looking-at "\r?\n") | ||
| 954 | (url-http-debug "Removing terminator of last chunk") | ||
| 955 | (delete-region (match-beginning 0) (match-end 0))) | ||
| 952 | (if (re-search-forward "^\r*$" nil t) | 956 | (if (re-search-forward "^\r*$" nil t) |
| 953 | (url-http-debug "Saw end of trailers...")) | 957 | (url-http-debug "Saw end of trailers...")) |
| 954 | (if (url-http-parse-headers) | 958 | (if (url-http-parse-headers) |