aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2024-09-17 15:56:09 +0200
committerJulian Hurst <julian.hurst@digdash.com>2024-09-17 15:56:25 +0200
commita767a647d10c8b1f4b081869dfceaed24b892b85 (patch)
tree201cb55855ec496b73248860f1ee5655f5cd0dbe /main.go
parente52a9b680872021c3b18e312e4ed281092b3112e (diff)
downloadrogerlie-a767a647d10c8b1f4b081869dfceaed24b892b85.tar.gz
Print queries if reading "raw" body
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index db2371c..3022347 100644
--- a/main.go
+++ b/main.go
@@ -29,6 +29,11 @@ func handle(w http.ResponseWriter, r *http.Request) {
log.Println(k, v)
}
} else {
+ log.Println("QUERIES:")
+ q := r.URL.Query()
+ for k, v := range q {
+ log.Println(k, v)
+ }
b, err := io.ReadAll(r.Body)
if err != nil {
panic(err)