We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f049f9 commit 68a4548Copy full SHA for 68a4548
caddy/caddy.go
@@ -316,14 +316,6 @@ func (f *FrankenPHPApp) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
316
if frankenphp.EmbeddedAppPath != "" && filepath.IsLocal(wc.FileName) {
317
wc.FileName = filepath.Join(frankenphp.EmbeddedAppPath, wc.FileName)
318
}
319
- if wc.Name == "" {
320
- // let worker initialization validate if the FileName is valid or not
321
- name, _ := fastabs.FastAbs(wc.FileName)
322
- if name == "" {
323
- name = wc.FileName
324
- }
325
- wc.Name = name
326
327
if strings.HasPrefix(wc.Name, "m#") {
328
return fmt.Errorf(`global worker names must not start with "m#": %q`, wc.Name)
329
0 commit comments