diff options
| author | Shulhan <ms@kilabit.info> | 2021-08-30 03:11:54 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-08-30 03:31:35 +0700 |
| commit | c4cfafac030320895cb509da337006595f2a376f (patch) | |
| tree | aa4f3502fb8fda7843dc43f461600750b9225435 | |
| parent | 6b9d5c57e8cbd64d94434fcb3370459b33179eba (diff) | |
| download | pakakeh.go-c4cfafac030320895cb509da337006595f2a376f.tar.xz | |
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.
| -rw-r--r-- | lib/memfs/memfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. ) // |
