fix httpreader constructor call

This commit is contained in:
mischief 2015-10-05 17:50:43 -07:00
parent ec2a857cd1
commit 1761f59b2b

View file

@ -88,7 +88,10 @@ func openZipStore(file string) (*zipStore, error) {
zs.closer = r.Close
zs.archive = &r.Reader
case "http", "https":
ra := httpreader.NewReader(file)
ra, err := httpreader.NewReader(file)
if err != nil {
return nil, err
}
sz, err := ra.Size()
if err != nil {
return nil, err