fix(request): deep copy shared header object in request options

This commit is contained in:
HFO4
2022-10-15 16:16:17 +08:00
parent c7dc143d30
commit 8494bd6eb9
4 changed files with 8 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ import (
func NewFS(zipContent string) fs.FS {
zipReader, err := zip.NewReader(strings.NewReader(zipContent), int64(len(zipContent)))
if err != nil {
util.Log().Panic("静态资源不是合法的zip文件: %s", err)
util.Log().Panic("Static resource is not a valid zip file: %s", err)
}
var files []file