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:
parent
589aee9f89
commit
3f473e4a09
3 changed files with 13 additions and 12 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue