fix httpreader constructor call
This commit is contained in:
parent
ec2a857cd1
commit
1761f59b2b
1 changed files with 4 additions and 1 deletions
5
store.go
5
store.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue