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