mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
888060e32c
commit
1fe85e82f7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user