1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
harveyshao 2022-12-08 21:58:40 +08:00
parent 888060e32c
commit 1fe85e82f7

View File

@ -4,6 +4,7 @@ import (
"archive/tar"
"compress/gzip"
"io"
"io/ioutil"
"os"
"path"
"strings"
@ -108,7 +109,7 @@ func init() {
})
}
func ReadAll(m *ice.Message, r io.Reader) []byte {
if buf, e := io.ReadAll(r); m.Warn(e) {
if buf, e := ioutil.ReadAll(r); m.Warn(e) {
return buf
} else {
return buf