Function: url-http-clean-headers

url-http-clean-headers is a byte-compiled function defined in url-http.el.gz.

Signature

(url-http-clean-headers)

Documentation

Remove trailing from header lines. This allows us to use mail-fetch-field, etc. Return the number of characters removed.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-http.el.gz
;; Parsing routines
(defun url-http-clean-headers ()
  "Remove trailing \r from header lines.
This allows us to use `mail-fetch-field', etc.
Return the number of characters removed."
  (let ((end (marker-position url-http-end-of-headers)))
    (goto-char (point-min))
    (while (re-search-forward "\r$" url-http-end-of-headers t)
      (replace-match ""))
    (- end url-http-end-of-headers)))