diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 48bf556a526..29cde247e61 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -315,8 +315,9 @@ Currently this means either text/html or application/xhtml+xml." (let* ((headers (eww-parse-headers)) (content-type (mail-header-parse-content-type - (or (cdr (assoc "content-type" headers)) - "text/plain"))) + (if (zerop (length (cdr (assoc "content-type" headers)))) + "text/plain" + (cdr (assoc "content-type" headers))))) (charset (intern (downcase (or (cdr (assq 'charset (cdr content-type)))