Compare commits

..

1 Commits

Author SHA1 Message Date
Bel LaPointe
72fca93e77 default -body=$BODY 2023-12-13 07:42:29 -07:00

View File

@@ -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