1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Improve response methods

This commit is contained in:
Frédéric Guillot 2017-12-22 20:17:48 -08:00
parent 589aee9f89
commit 3f473e4a09
3 changed files with 13 additions and 12 deletions

View file

@ -48,6 +48,7 @@ func (r *Response) Redirect(path string) {
// NotModified sends a response with a 304 status code.
func (r *Response) NotModified() {
r.commonHeaders()
r.writer.WriteHeader(http.StatusNotModified)
}