From 72fca93e77b5f8aa3fe084bc4f2cb7d5b9682d7a Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Wed, 13 Dec 2023 07:42:29 -0700 Subject: [PATCH] default -body=$BODY --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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