rc/fcgi.example.cfg/fcgi.go | 2 +- diff --git a/rc/fcgi.example.cfg/fcgi.go b/rc/fcgi.example.cfg/fcgi.go index 8e5ef3f920ccfe82b0f314c76940e32aaa4b4503e09cb11459a29ad371003ca8..fe67d7c298c359ecfca46b81059d1f7777556b91a3037195f394207853945d0b 100644 --- a/rc/fcgi.example.cfg/fcgi.go +++ b/rc/fcgi.example.cfg/fcgi.go @@ -50,7 +50,7 @@ for k, vs := range r.Header { if len(vs) < 1 { continue } - k = "HTTP_" + strings.ToUpper(strings.Replace(k, "-", "_", -1)) + k = "HTTP_" + strings.ToUpper(strings.ReplaceAll(k, "-", "_")) params[k] = strings.Join(vs, ";") } c, err := fcgiclient.Dial(sockProto, sockPath)