diff options
author | James Stout <james.wolf.stout@gmail.com> | 2015-12-28 20:49:57 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2015-12-28 20:55:36 +0100 |
commit | 57029f3d84232584ae43791f7b8d8804d516eadd (patch) | |
tree | ee37af44dc1e454c44d3fb22876e2daa773ba634 | |
parent | 6dcaa56a13271eabc79d475059d29ebb886ea3e7 (diff) | |
download | emacs-57029f3d84232584ae43791f7b8d8804d516eadd.tar.gz |
Make chunked encoding trailer detection more compliant
* lisp/url/url-http.el
(url-http-chunked-encoding-after-change-function): Make
trailer detection more compliant (bug#16345).
Copyright-paperwork-exempt: yes
-rw-r--r-- | lisp/url/url-http.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index b65affee7d4..c5b6ef3980a 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -1056,7 +1056,7 @@ the end of the document." (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) + (if (re-search-forward "^\r?\n" nil t) (url-http-debug "Saw end of trailers...")) (if (url-http-parse-headers) (url-http-activate-callback)))))))))) |