fix(06-12): bound named middleware by body cap, cache factories, fail boot on bad body config and mux conflicts

This commit is contained in:
Jakub Zych
2026-09-21 19:42:20 +02:00
parent 46c7e4f98e
commit a50e09ba34
3 changed files with 118 additions and 7 deletions

View File

@@ -100,6 +100,9 @@ func writeHTTPConfig(t *testing.T, httpYAML string) *compass.Config {
func TestCORSAssembleUsesConfig(t *testing.T) {
cfg := writeHTTPConfig(t, `
body_limits:
default_bytes: 1048576
upload_bytes: 1048576
cors:
paths: ["api/*"]
allowed_methods: ["*"]