mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Compress JSON, CSS and Javascript responses
This commit is contained in:
parent
a291d8a38b
commit
9f6533ece9
14 changed files with 41 additions and 35 deletions
|
@ -20,13 +20,13 @@ func (m *Middleware) FeverAuth(next http.Handler) http.Handler {
|
|||
user, err := m.store.UserByFeverToken(apiKey)
|
||||
if err != nil {
|
||||
logger.Error("[Middleware:Fever] %v", err)
|
||||
json.OK(w, map[string]int{"api_version": 3, "auth": 0})
|
||||
json.OK(w, r, map[string]int{"api_version": 3, "auth": 0})
|
||||
return
|
||||
}
|
||||
|
||||
if user == nil {
|
||||
logger.Info("[Middleware:Fever] Fever authentication failure")
|
||||
json.OK(w, map[string]int{"api_version": 3, "auth": 0})
|
||||
json.OK(w, r, map[string]int{"api_version": 3, "auth": 0})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue