default -body=$BODY
This commit is contained in:
2
main.go
2
main.go
@@ -32,7 +32,7 @@ func main() {
|
||||
fail := flag.Bool("fail", false, "fail connections forever")
|
||||
block := flag.Int("block", 0, "seconds to block connections")
|
||||
status := flag.Int("status", http.StatusOK, "status to always return")
|
||||
body := flag.String("body", "", "body to always return")
|
||||
body := flag.String("body", envOrDefault("BODY", ""), "body to always return")
|
||||
flag.Parse()
|
||||
|
||||
// start server
|
||||
|
||||
Reference in New Issue
Block a user