We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7d746 commit 8da89a7Copy full SHA for 8da89a7
main.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"log"
8
"net/http"
9
+ "net/http/httputil"
10
"os"
11
"os/signal"
12
"path"
@@ -16,7 +17,7 @@ import (
16
17
"github.com/gorilla/mux"
18
)
19
-const version = "1.3.0"
20
+const version = "1.3.1"
21
22
var (
23
hostv6 = flag.String("hostv6", "[::1]", "IPv6 host to listen on")
@@ -40,6 +41,14 @@ func printv() {
40
41
42
func ListenHandler(w http.ResponseWriter, r *http.Request) {
43
w.WriteHeader(*status)
44
+
45
+ if *verbose {
46
+ requestDump, err := httputil.DumpRequest(r, true)
47
+ if err != nil {
48
+ fmt.Println(err)
49
+ }
50
+ fmt.Printf("%s\n\n", string(requestDump))
51
52
}
53
54
func Init() {
0 commit comments