* eww.el (eww-render): Protect against empty content-types.
This commit is contained in:
parent
6f747a7c57
commit
7faf9193cd
1 changed files with 3 additions and 2 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue