From c4cfafac030320895cb509da337006595f2a376f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 30 Aug 2021 03:11:54 +0700 Subject: lib/memfs: set default content type for empty file to "text/plain" An empty file should be able to be displayed as text file instead of downloaded as binary. --- lib/memfs/memfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memfs/memfs.go b/lib/memfs/memfs.go index 815964eb..850dc386 100644 --- a/lib/memfs/memfs.go +++ b/lib/memfs/memfs.go @@ -30,7 +30,7 @@ import ( const ( EncodingGzip = "gzip" - defContentType = "application/octet-stream" + defContentType = "text/plain" // Default content type for empty file. ) // -- cgit v1.3