From 109ec9a7d86bcadb16541873d95068f737586692 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 10 Jul 2020 20:30:54 +0800 Subject: Enhance blob view Changes: - set maximum size of displayable blobs - raw blobs are now of type `bytes` - do not try to decode handle binary blobs --- git-gmi/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-gmi/const.py') diff --git a/git-gmi/const.py b/git-gmi/const.py index 44818c6..f1f757f 100644 --- a/git-gmi/const.py +++ b/git-gmi/const.py @@ -2,4 +2,5 @@ STATUS_SUCCESS = "20" STATUS_NOT_FOUND = "51 NOT FOUND" STATUS_TEMPORARY_FAILURE = "40 TEMPORARY FAILURE" META_GEMINI = "text/gemini" -META_PLAINTEXT = "text/plain" \ No newline at end of file +META_PLAINTEXT = "text/plain" +MAX_DISPLAYED_BLOB_SIZE = 500 * 1024 # 500KB -- cgit v1.2.3