1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-23 02:02:33 +01:00

remove TTL, will make a seperate PR

This commit is contained in:
Karmanyaah Malhotra 2023-02-15 03:38:24 -06:00
parent c6b64df662
commit b9badee6db

View file

@ -694,9 +694,6 @@ func (s *Server) handlePublish(w http.ResponseWriter, r *http.Request, v *visito
return err
}
w.Header().Set("TTL", strconv.FormatInt(m.Expires-m.Time, 10)) // return how long a message will be stored for
// using m.Time, not time.Now() so the value isn't negative if the request is processed at a second boundary
return s.writeJSON(w, m)
}