Compare commits
1 Commits
cf779e45f5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72fca93e77 |
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