summaryrefslogtreecommitdiff
path: root/got
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-02 19:57:01 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-02 19:57:01 -0400
commit85db279e33804c118b019c5f1e7666798df3e1f5 (patch)
treedfccd3ba1710fbfc68942f61690b24ca6a3fb364 /got
parentb51a2c03985f09845e498ece625f5e8a309b6086 (diff)
better text-type detection
Diffstat (limited to 'got')
-rw-r--r--got/view_blob.got2
1 files changed, 1 insertions, 1 deletions
diff --git a/got/view_blob.got b/got/view_blob.got
index 63039f2..1a3c4cd 100644
--- a/got/view_blob.got
+++ b/got/view_blob.got
@@ -1,7 +1,7 @@
<!-- -*- Mode: HTML -*- -->
<h1>{{.path | html}}</h1>
<p>Content-Type: {{.ctype | html}}</p>
-{{if hasprefix .ctype "text/"}}
+{{if istext .ctype}}
<form method="POST" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
<textarea name="_body">{{.content | html }}</textarea>