We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c814e5f commit de1765aCopy full SHA for de1765a
pypi_browser/app.py
@@ -36,7 +36,7 @@
36
ONE_MB = 2**20
37
ONE_GB = 2**30
38
39
-TEXT_RENDER_FILESIZE_LIMIT = 50 * ONE_KB
+TEXT_RENDER_FILESIZE_LIMIT = int(os.environ.get('PYPI_BROWSER_TEXT_RENDER_FILESIZE_LIMIT', ONE_MB))
40
41
# Mime types which are allowed to be presented as detected.
42
# TODO: I think we actually only need to prevent text/html (and any HTML
0 commit comments