From 333d3a37828379e8cc7e28790ad6888161897167 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 8 Jun 2022 11:21:38 +0200 Subject: [PATCH] Set Accept-Ranges to none for text file handler --- modules/http/file-handlers/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http/file-handlers/text.py b/modules/http/file-handlers/text.py index 1e6ab47..a183f81 100644 --- a/modules/http/file-handlers/text.py +++ b/modules/http/file-handlers/text.py @@ -15,7 +15,7 @@ def handleText(env): env["self"].connection,"200 OK", { "Content-Type": mimetypesText[env["fileExt"]]+ "; charset=UTF-8", - "Accept-Ranges": "bytes" + "Accept-Ranges": "none", "Date": env["requestTimeFormatted"], "Last-Modified": lastModified },data