mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-10 10:53:36 +02:00
cleanup code, redirect to auth page when need
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func WriteBody(w http.ResponseWriter, body []byte) {
|
||||
if _, err := w.Write(body); err != nil {
|
||||
HandleErr(w, nil, err)
|
||||
logging.Err(err).Msg("failed to write body")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user