remove ttl

pull/609/head
Karmanyaah Malhotra 2023-02-15 03:31:59 -06:00
parent 7c5b9c0e62
commit c6b64df662
1 changed files with 0 additions and 1 deletions

View File

@ -372,7 +372,6 @@ func (s *Server) handleError(w http.ResponseWriter, r *http.Request, v *visitor,
} }
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Origin", s.config.AccessControlAllowOrigin) // CORS, allow cross-origin requests w.Header().Set("Access-Control-Allow-Origin", s.config.AccessControlAllowOrigin) // CORS, allow cross-origin requests
w.Header().Set("TTL", "0") // if message is not being stored because of an error, tell them
w.WriteHeader(httpErr.HTTPCode) w.WriteHeader(httpErr.HTTPCode)
io.WriteString(w, httpErr.JSON()+"\n") io.WriteString(w, httpErr.JSON()+"\n")
} }