This commit is contained in:
shoopea 2019-06-09 22:29:06 +08:00
parent 333f4c86bb
commit 52a5916c2d

4
msg.go
View File

@ -327,6 +327,10 @@ func UnzipMessages(z []byte) error {
log.Printf("UnzipMessages : %d bytes.\n", len(z))
r := bytes.NewReader(z)
zr, err := zip.NewReader(r, int64(len(z)))
logOnError("UnzipMessages : NewReader")
if err != nil {
return err
}
for _, f := range zr.File {
log.Printf("File : %s\n", f.Name)