diff options
author | Jordan <me@jordan.im> | 2022-12-31 15:27:49 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-12-31 15:27:49 -0700 |
commit | e2f9ff5ee9a90bc4bf7daf45e150a944348bd392 (patch) | |
tree | 20e579a774680b665abfc3e383da1e7465e957ca | |
parent | 7c1d3208374e36f2d3c3a16c10ab59adc98b46ba (diff) | |
download | whoami-master.tar.gz whoami-master.zip |
-rw-r--r-- | whoami.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,8 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "\"Host\": %q\n", html.EscapeString(r.Host)) fmt.Fprintf(w, "\"IP\": %q\n", html.EscapeString(r.RemoteAddr)) + fmt.Fprintf(w, "\"Method\": %q\n", html.EscapeString(r.Method)) + fmt.Fprintf(w, "\"Proto\": %q\n", html.EscapeString(r.Proto)) fmt.Fprintf(w, "\"URI\": %q\n", html.EscapeString(r.RequestURI)) keys := make([]string, 0) |