Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 7c058c9

Browse files
fix: Explicitly cast upload memory size config values to integers (#1138)
1 parent d23a6a0 commit 7c058c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codecov/settings_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@
345345
IS_ENTERPRISE = get_settings_module() == SettingsModule.ENTERPRISE.value
346346
IS_DEV = get_settings_module() == SettingsModule.DEV.value
347347

348-
DATA_UPLOAD_MAX_MEMORY_SIZE = get_config(
349-
"setup", "http", "upload_max_memory_size", default=2621440
348+
DATA_UPLOAD_MAX_MEMORY_SIZE = int(
349+
get_config("setup", "http", "upload_max_memory_size", default=2621440)
350350
)
351-
FILE_UPLOAD_MAX_MEMORY_SIZE = get_config(
352-
"setup", "http", "file_upload_max_memory_size", default=2621440
351+
FILE_UPLOAD_MAX_MEMORY_SIZE = int(
352+
get_config("setup", "http", "file_upload_max_memory_size", default=2621440)
353353
)
354354

355355
CORS_ALLOWED_ORIGIN_REGEXES = get_config(

0 commit comments

Comments
 (0)