diff options
| author | James Stout | 2015-12-28 20:49:57 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2015-12-28 20:55:36 +0100 |
| commit | 57029f3d84232584ae43791f7b8d8804d516eadd (patch) | |
| tree | ee37af44dc1e454c44d3fb22876e2daa773ba634 | |
| parent | 6dcaa56a13271eabc79d475059d29ebb886ea3e7 (diff) | |
| download | emacs-57029f3d84232584ae43791f7b8d8804d516eadd.tar.gz emacs-57029f3d84232584ae43791f7b8d8804d516eadd.zip | |
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." | |||
| 1056 | (when (looking-at "\r?\n") | 1056 | (when (looking-at "\r?\n") |
| 1057 | (url-http-debug "Removing terminator of last chunk") | 1057 | (url-http-debug "Removing terminator of last chunk") |
| 1058 | (delete-region (match-beginning 0) (match-end 0))) | 1058 | (delete-region (match-beginning 0) (match-end 0))) |
| 1059 | (if (re-search-forward "^\r*$" nil t) | 1059 | (if (re-search-forward "^\r?\n" nil t) |
| 1060 | (url-http-debug "Saw end of trailers...")) | 1060 | (url-http-debug "Saw end of trailers...")) |
| 1061 | (if (url-http-parse-headers) | 1061 | (if (url-http-parse-headers) |
| 1062 | (url-http-activate-callback)))))))))) | 1062 | (url-http-activate-callback)))))))))) |