mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 10:50:38 +01:00
feat: update version to 1.1.0 and modify gzip compression handling for /spoolman route
This commit is contained in:
1 parent
b24c50722f
commit
2703689e4e
4 files changed
+8
-35
No files matched your search
@@ -13,6 +13,9 @@ def copy_file(input_file, output_file):
|
||||
shutil.copy2(input_file, output_file)
|
||||
|
||||
def should_compress(file):
|
||||
# Skip compression for spoolman.html
|
||||
if file == 'spoolman.html':
|
||||
return False
|
||||
# Komprimiere nur bestimmte Dateitypen
|
||||
return file.endswith(('.js', '.png', '.css', '.html'))
|
||||
|
||||
|
||||
Reference in new issue
Block a user