include error message here too
This commit is contained in:
parent
7dd1b8c851
commit
f242294ef8
2
web.go
2
web.go
|
@ -349,7 +349,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
|||
keyname, err = httpsig.VerifyRequest(r, payload, zaggy)
|
||||
}
|
||||
if err != nil {
|
||||
log.Printf("inbox message failed signature for %s from %s", keyname, r.Header.Get("X-Forwarded-For"))
|
||||
log.Printf("inbox message failed signature for %s from %s: %s", keyname, r.Header.Get("X-Forwarded-For"), err)
|
||||
if keyname != "" {
|
||||
log.Printf("bad signature from %s", keyname)
|
||||
io.WriteString(os.Stdout, "bad payload\n")
|
||||
|
|
Loading…
Reference in New Issue