We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a9bc7f commit a12b498Copy full SHA for a12b498
1 file changed
caddy/module.go
@@ -117,11 +117,11 @@ func (f *FrankenPHPModule) Provision(ctx caddy.Context) error {
117
f.SplitPath = []string{".php"}
118
}
119
120
- if opt, err := frankenphp.WithRequestSplitPath(f.SplitPath); err == nil {
121
- f.requestOptions = append(f.requestOptions, opt)
122
- } else {
123
+ opt, err := frankenphp.WithRequestSplitPath(f.SplitPath)
+ if err != nil {
+ return fmt.Errorf("invalid split_path: %w", err)
124
+ f.requestOptions = append(f.requestOptions, opt)
125
126
if f.ResolveRootSymlink == nil {
127
f.ResolveRootSymlink = new(true)
0 commit comments