(env map[string]string)
| 162 | } |
| 163 | |
| 164 | func (wc *workerConfig) inheritEnv(env map[string]string) { |
| 165 | if wc.Env == nil { |
| 166 | wc.Env = make(map[string]string, len(env)) |
| 167 | } |
| 168 | for k, v := range env { |
| 169 | // do not overwrite existing environment variables |
| 170 | if _, exists := wc.Env[k]; !exists { |
| 171 | wc.Env[k] = v |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | func (wc *workerConfig) matchesPath(r *http.Request, documentRoot string) bool { |
| 177 | // try to match against a pattern if one is assigned |