mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-01-24 22:53:43 +03:00
querylog: imp code
This commit is contained in:
parent
ca22d8524d
commit
649454e77b
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func (l *queryLog) handleQueryLogExport(w http.ResponseWriter, r *http.Request)
|
||||||
csvWriter := csv.NewWriter(w)
|
csvWriter := csv.NewWriter(w)
|
||||||
defer func() {
|
defer func() {
|
||||||
if err = csvWriter.Error(); err != nil {
|
if err = csvWriter.Error(); err != nil {
|
||||||
http.Error(w, "writing csv", http.StatusInternalServerError)
|
aghhttp.Error(r, w, http.StatusInternalServerError, "writing csv")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue