fix order of writing header

This commit is contained in:
gempir 2022-09-22 22:12:59 +02:00
parent 6aa7cd3abf
commit 20c9986a0a

View file

@ -92,8 +92,8 @@ func (s *Server) writeAvailableLogs(w http.ResponseWriter, r *http.Request, q ur
return
}
writeJSON(&logList{logs}, http.StatusOK, w, r)
writeCacheControl(w, r, time.Hour)
writeJSON(&logList{logs}, http.StatusOK, w, r)
}
// swagger:route GET /channel/{channel}/user/{username} logs channelUserLogs