1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34: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" "archive/tar"
"compress/gzip" "compress/gzip"
"io" "io"
"io/ioutil"
"os" "os"
"path" "path"
"strings" "strings"
@ -108,7 +109,7 @@ func init() {
}) })
} }
func ReadAll(m *ice.Message, r io.Reader) []byte { 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 return buf
} else { } else {
return buf return buf