diff --git a/main.go b/main.go index 460bc93..4b48e70 100755 --- a/main.go +++ b/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