diff options
| author | Jeff Carr <[email protected]> | 2024-01-31 08:45:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-31 08:45:58 -0600 |
| commit | 424c8d5a36e272ccedb2a6717c2a3d08b2ea1768 (patch) | |
| tree | c3ae81966d601dcb9a5fc49f1cbc135262e26d27 /dumpClient.go | |
| parent | 9ff813b0ad6a68c2aad8f6a7365b452a19c07457 (diff) | |
add versions and timestamps
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'dumpClient.go')
| -rw-r--r-- | dumpClient.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dumpClient.go b/dumpClient.go index 2b5dcf4..188a8d7 100644 --- a/dumpClient.go +++ b/dumpClient.go @@ -2,9 +2,9 @@ package main import ( "fmt" - "time" - "net/http" "io/ioutil" + "net/http" + "time" "go.wit.com/log" ) @@ -32,9 +32,8 @@ func dumpClient(r *http.Request) { fmt.Fprintln(clientf, "Host:", r.Host) fmt.Fprintln(clientf, "Remote Address:", r.RemoteAddr) - // Headers - fmt.Fprintln(clientf,"Headers:") + fmt.Fprintln(clientf, "Headers:") for name, values := range r.Header { for _, value := range values { fmt.Fprintln(clientf, "Headers:", name, value) @@ -56,7 +55,7 @@ func dumpClient(r *http.Request) { fmt.Fprintln(clientf, "Content Length:", r.ContentLength) // Cookies - fmt.Fprintln(clientf,"Cookies:") + fmt.Fprintln(clientf, "Cookies:") for _, cookie := range r.Cookies() { fmt.Fprintln(clientf, cookie.Name, cookie.Value) } |
