chore: add more tests (#3577)

This commit is contained in:
Kevin Wan
2023-09-20 00:01:26 +08:00
committed by GitHub
parent 68df0c3620
commit 4211672bfd
2 changed files with 37 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ func (w *cryptionResponseWriter) flush(key []byte) {
body := base64.StdEncoding.EncodeToString(content)
if n, err := io.WriteString(w.ResponseWriter, body); err != nil {
logx.Errorf("write response failed, error: %s", err)
} else if n < len(content) {
logx.Errorf("actual bytes: %d, written bytes: %d", len(content), n)
} else if n < len(body) {
logx.Errorf("actual bytes: %d, written bytes: %d", len(body), n)
}
}