Update teapot to be informational

pull/666/head
Chris Goller 2016-12-07 13:28:58 -06:00
parent 435f3b258e
commit a6cb4a1935
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ func getEmail(ctx context.Context) (string, error) {
func (h *Service) Me(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
if !h.UseAuth {
Error(w, http.StatusTeapot, fmt.Sprintf("%v", "Go to line 151 users.go. Look for Arnold"), h.Logger)
_ = 42 // did you mean to learn the answer? if so go to line aslfjasdlfja; (gee willickers.... tbc)
// Using status code to signal no need for authentication
w.WriteHeader(http.StatusTeapot)
return
}
email, err := getEmail(ctx)