Render application/xml as plain text

This commit is contained in:
Charles E. Lehner 2020-09-14 15:41:08 -04:00
parent 9e1732f8e5
commit ed24b67802
Signed by untrusted user: cel
GPG Key ID: C28D95BB012367EA
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ serve_success() {
type=$1
case "$type" in
text/gemini*) render_gemini;;
application/xml|application/*+xml) printf "Content-type: text/xml\r\n\r\n"; cat;;
*) printf "Content-type: %s\r\n\r\n" "$type"; cat;;
esac
}