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:
@@ -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: ["*"]
|
||||
|
||||
Reference in New Issue
Block a user