fix lint errors (line length, unused var, nested if)
Some checks failed
CI / Lint & Format (push) Failing after 15s
CI / Tests (push) Has been skipped
CI / Security Scan (push) Failing after 21s

This commit is contained in:
Username
2025-12-20 18:31:47 +01:00
parent 9e92db5217
commit d0b199de11
2 changed files with 7 additions and 9 deletions

View File

@@ -40,9 +40,10 @@ class Config:
MIN_ENTROPY_SIZE = int(os.environ.get("FLASKPASTE_MIN_ENTROPY_SIZE", 256))
# Require binary content (reject recognizable formats)
# When enabled, rejects content with known magic bytes (PNG, JPEG, PDF, etc.)
# and valid UTF-8 text. Only application/octet-stream allowed.
REQUIRE_BINARY = os.environ.get("FLASKPASTE_REQUIRE_BINARY", "0").lower() in ("1", "true", "yes")
# Rejects content with known magic bytes (PNG, JPEG, PDF, etc.) and UTF-8 text.
REQUIRE_BINARY = (
os.environ.get("FLASKPASTE_REQUIRE_BINARY", "0").lower() in ("1", "true", "yes")
)
# Reverse proxy trust configuration
# SECURITY: The X-SSL-Client-SHA1 header is trusted for authentication.