Skip to content

Fix ConfigLoader bytesSize failing to parse value ending by 6#2521

Open
Lectem wants to merge 1 commit into
drogonframework:masterfrom
Lectem:fix/bytesSize-parsing
Open

Fix ConfigLoader bytesSize failing to parse value ending by 6#2521
Lectem wants to merge 1 commit into
drogonframework:masterfrom
Lectem:fix/bytesSize-parsing

Conversation

@Lectem
Copy link
Copy Markdown
Contributor

@Lectem Lectem commented May 16, 2026

Any digit-only byte size whose last character is '6' causes the server to refuse to start with "Error format of client_max_body_size". So "client_max_body_size": "16" or "60000006" or "1048576" (= 1 MiB literal) all break Drogon startup.

Easy fix by including the case '6': line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant