test
This commit is contained in:
parent
333f4c86bb
commit
52a5916c2d
4
msg.go
4
msg.go
@ -327,6 +327,10 @@ func UnzipMessages(z []byte) error {
|
|||||||
log.Printf("UnzipMessages : %d bytes.\n", len(z))
|
log.Printf("UnzipMessages : %d bytes.\n", len(z))
|
||||||
r := bytes.NewReader(z)
|
r := bytes.NewReader(z)
|
||||||
zr, err := zip.NewReader(r, int64(len(z)))
|
zr, err := zip.NewReader(r, int64(len(z)))
|
||||||
|
logOnError("UnzipMessages : NewReader")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
for _, f := range zr.File {
|
for _, f := range zr.File {
|
||||||
log.Printf("File : %s\n", f.Name)
|
log.Printf("File : %s\n", f.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user