aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/handlers.go b/handlers.go
index 07f0ca4..519fbea 100644
--- a/handlers.go
+++ b/handlers.go
@@ -14,7 +14,7 @@ func wfm(w http.ResponseWriter, r *http.Request) {
if user == "" {
return
}
- log.Printf("req from=%q user=%q uri=%q form=%v", r.RemoteAddr, user, r.RequestURI, r.Form)
+ go log.Printf("req from=%q user=%q uri=%q form=%v", r.RemoteAddr, user, r.RequestURI, noText(r.Form))
modern := false
if strings.HasPrefix(r.UserAgent(), "Mozilla/5") {
modern = true
@@ -114,3 +114,14 @@ func wfm(w http.ResponseWriter, r *http.Request) {
func favicon(w http.ResponseWriter, r *http.Request) {
dispFavIcon(w)
}
+
+func noText(m map[string][]string) map[string][]string {
+ o := make(map[string][]string)
+ for k, v := range m {
+ if k == "text" {
+ continue
+ }
+ o[k] = v
+ }
+ return o
+}