diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-02 19:57:01 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-02 19:57:01 -0400 |
commit | 85db279e33804c118b019c5f1e7666798df3e1f5 (patch) | |
tree | dfccd3ba1710fbfc68942f61690b24ca6a3fb364 /got | |
parent | b51a2c03985f09845e498ece625f5e8a309b6086 (diff) |
better text-type detection
Diffstat (limited to 'got')
-rw-r--r-- | got/view_blob.got | 2 |
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> |