fix(web-console): zip invalid — Close() после Bytes() (v0.1.6)
This commit is contained in:
@@ -27,7 +27,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: funcs
|
- name: funcs
|
||||||
image: naeel/sless-funcs-service:v0.1.5
|
image: naeel/sless-funcs-service:v0.1.6
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8090
|
- containerPort: 8090
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -774,7 +774,10 @@ func buildZipFiles(files map[string]string) ([]byte, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return buf.Bytes(), zw.Close()
|
if err := zw.Close(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return buf.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// proxyFnStatus отдаёт текущий phase+url функции/сервиса — используется для UI polling.
|
// proxyFnStatus отдаёт текущий phase+url функции/сервиса — используется для UI polling.
|
||||||
|
|||||||
Reference in New Issue
Block a user