Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Feb 5, 2024
1 parent b406695 commit 05d2346
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ func init() {

fmt.Printf("Started process %s with PID %d\n", os.Args[1], cmd.Process.Pid)

// Wait for the command to finish
err = cmd.Wait()
if err != nil {
fmt.Printf("Command finished with error: %v\n", err)
}

// Exit after running the command
os.Exit(0)
}
}

Expand Down Expand Up @@ -130,8 +122,6 @@ func filterInvalidHeaders(headers http.Header) {
invalidHeaders := []string{"!~Passenger-Proto", "!~Passenger-Client-Address", "!~Passenger-Envvars"}

for _, header := range invalidHeaders {
if _, ok := headers[header]; ok {
delete(headers, header)
}
delete(headers, header)
}
}

0 comments on commit 05d2346

Please sign in to comment.