Commit 84f089d3 authored by Magnus Henoch's avatar Magnus Henoch
Browse files


Remove superfluous CRLF at end of file.  (bug #42)
parent c102c94f
2008-03-09 Magnus Henoch <>
* url-http.el (url-http-chunked-encoding-after-change-function):
Remove superfluous CRLF at end of file. (bug #42)
2008-03-02 Andreas Schwab <>
* url-util.el: Require cl when compiling.
......@@ -948,7 +948,11 @@ the end of the document."
(url-http-debug "Saw end of stream chunk!")
(setq read-next-chunk nil)
(url-display-percentage nil nil)
(goto-char (match-end 1))
;; Every chunk, even the last 0-length one, is
;; terminated by CRLF. Skip it.
(when (looking-at "\r?\n")
(url-http-debug "Removing terminator of last chunk")
(delete-region (match-beginning 0) (match-end 0)))
(if (re-search-forward "^\r*$" nil t)
(url-http-debug "Saw end of trailers..."))
(if (url-http-parse-headers)
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