mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add flush history feature
This commit is contained in:
parent
238b9e4c85
commit
549a4277b0
15 changed files with 79 additions and 17 deletions
|
@ -54,7 +54,10 @@ func (j *JsonResponse) ServerError(err error) {
|
|||
log.Println("[API:ServerError]", err)
|
||||
j.writer.WriteHeader(http.StatusInternalServerError)
|
||||
j.commonHeaders()
|
||||
j.writer.Write(j.encodeError(err))
|
||||
|
||||
if err != nil {
|
||||
j.writer.Write(j.encodeError(err))
|
||||
}
|
||||
}
|
||||
|
||||
func (j *JsonResponse) Forbidden() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue