return a teapot for sig errors
This commit is contained in:
parent
c0f2a64983
commit
f4df46080e
1
web.go
1
web.go
|
@ -293,6 +293,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
os.Stdout.Write(payload)
|
os.Stdout.Write(payload)
|
||||||
io.WriteString(os.Stdout, "\n")
|
io.WriteString(os.Stdout, "\n")
|
||||||
}
|
}
|
||||||
|
http.Error(w, "what did you call me?", http.StatusTeapot)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
what, _ := j.GetString("type")
|
what, _ := j.GetString("type")
|
||||||
|
|
Loading…
Reference in New Issue