Update data.go

This commit is contained in:
Andrew 2024-03-07 08:44:41 +00:00
parent 759f952e7d
commit a9ee2971b3

View File

@ -67,7 +67,7 @@ func handle(fn handleFunc, prefix string, store *storage.Storage, server *settin
}) })
clientIP := realip.FromRequest(r) clientIP := realip.FromRequest(r)
log.Printf("%s: %v %s %v", r.URL.Path, status, clientIP, err) log.Printf("%s: %v %s %v", r.URL.Path, status, clientIP, err)
if status != 0 { if status != 0 {
txt := http.StatusText(status) txt := http.StatusText(status)
http.Error(w, strconv.Itoa(status)+" "+txt, status) http.Error(w, strconv.Itoa(status)+" "+txt, status)