add a newline after dumped payloads
This commit is contained in:
parent
9d684542d4
commit
ca30929bfe
4
web.go
4
web.go
|
@ -341,6 +341,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ilog.Printf("bad payload: %s", err)
|
ilog.Printf("bad payload: %s", err)
|
||||||
ilog.Writer().Write(payload)
|
ilog.Writer().Write(payload)
|
||||||
|
ilog.Writer().Write([]byte{'\n'})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,6 +368,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
if keyname != "" {
|
if keyname != "" {
|
||||||
ilog.Printf("bad signature from %s", keyname)
|
ilog.Printf("bad signature from %s", keyname)
|
||||||
ilog.Writer().Write(payload)
|
ilog.Writer().Write(payload)
|
||||||
|
ilog.Writer().Write([]byte{'\n'})
|
||||||
}
|
}
|
||||||
http.Error(w, "what did you call me?", http.StatusTeapot)
|
http.Error(w, "what did you call me?", http.StatusTeapot)
|
||||||
return
|
return
|
||||||
|
@ -456,6 +458,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ilog.Printf("bad payload: %s", err)
|
ilog.Printf("bad payload: %s", err)
|
||||||
ilog.Writer().Write(payload)
|
ilog.Writer().Write(payload)
|
||||||
|
ilog.Writer().Write([]byte{'\n'})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if crappola(j) {
|
if crappola(j) {
|
||||||
|
@ -471,6 +474,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) {
|
||||||
if keyname != "" {
|
if keyname != "" {
|
||||||
ilog.Printf("bad signature from %s", keyname)
|
ilog.Printf("bad signature from %s", keyname)
|
||||||
ilog.Writer().Write(payload)
|
ilog.Writer().Write(payload)
|
||||||
|
ilog.Writer().Write([]byte{'\n'})
|
||||||
}
|
}
|
||||||
http.Error(w, "what did you call me?", http.StatusTeapot)
|
http.Error(w, "what did you call me?", http.StatusTeapot)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue