return a teapot for sig errors

This commit is contained in:
Ted Unangst 2019-10-08 02:35:51 -04:00
parent c0f2a64983
commit f4df46080e
1 changed files with 1 additions and 0 deletions

1
web.go
View File

@ -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")