The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3fdacd
)
Enabled rendering of HTML files served over gemini.
author
Tim Vaughan
<tgvaughan@gmail.com>
Thu, 24 Oct 2019 12:32:27 +0000
(14:32 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Thu, 24 Oct 2019 12:32:27 +0000
(14:32 +0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
bd8cc42
..
ac45b99
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-927,6
+927,8
@@
The response is assumed to be in the variable `elpher-gemini-response'."
(pcase mime-type
((or "text/gemini" "")
(elpher-render-gemini-map body parameters))
+ ("text/html"
+ (elpher-render-html body))
((pred (string-prefix-p "text/"))
(elpher-render-gemini-plain-text body parameters))
((pred (string-prefix-p "image/"))