From ca30929bfe08b0b478a5eb456c029493d9a9ee9f Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 18 May 2022 14:46:38 -0400 Subject: [PATCH] add a newline after dumped payloads --- web.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web.go b/web.go index 9596992..21eb95b 100644 --- a/web.go +++ b/web.go @@ -341,6 +341,7 @@ func inbox(w http.ResponseWriter, r *http.Request) { if err != nil { ilog.Printf("bad payload: %s", err) ilog.Writer().Write(payload) + ilog.Writer().Write([]byte{'\n'}) return } @@ -367,6 +368,7 @@ func inbox(w http.ResponseWriter, r *http.Request) { if keyname != "" { ilog.Printf("bad signature from %s", keyname) ilog.Writer().Write(payload) + ilog.Writer().Write([]byte{'\n'}) } http.Error(w, "what did you call me?", http.StatusTeapot) return @@ -456,6 +458,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) { if err != nil { ilog.Printf("bad payload: %s", err) ilog.Writer().Write(payload) + ilog.Writer().Write([]byte{'\n'}) return } if crappola(j) { @@ -471,6 +474,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) { if keyname != "" { ilog.Printf("bad signature from %s", keyname) ilog.Writer().Write(payload) + ilog.Writer().Write([]byte{'\n'}) } http.Error(w, "what did you call me?", http.StatusTeapot) return