Skip to content

feat(config): add body_size_limit to TOML config#42

Merged
pgagnidze merged 2 commits intomainfrom
feat/config-body-size-limit
Apr 21, 2026
Merged

feat(config): add body_size_limit to TOML config#42
pgagnidze merged 2 commits intomainfrom
feat/config-body-size-limit

Conversation

@pgagnidze
Copy link
Copy Markdown
Member

Summary

Follow-up to #41.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./...
  • New TestBodySizeLimitInheritance covers inherit from global, explicit target override, and per-target 0 = unlimited
  • New TestBodySizeLimitDefault covers the viper default (1 MiB) when neither global nor target sets the field
  • Manual: verified all three semantics end-to-end with a 2 MiB test endpoint and a TOML config that exercised each case

@pgagnidze pgagnidze merged commit e506985 into main Apr 21, 2026
3 checks passed
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