Add http-wasm plugin support to Traefik
This commit is contained in:
parent
b2bb96390a
commit
6858dbdd07
9 changed files with 338 additions and 119 deletions
|
@ -279,7 +279,15 @@ func unzipFile(f *zipa.File, dest string) error {
|
|||
defer func() { _ = rc.Close() }()
|
||||
|
||||
pathParts := strings.SplitN(f.Name, "/", 2)
|
||||
p := filepath.Join(dest, pathParts[1])
|
||||
|
||||
var pp string
|
||||
if len(pathParts) < 2 {
|
||||
pp = pathParts[0]
|
||||
} else {
|
||||
pp = pathParts[1]
|
||||
}
|
||||
|
||||
p := filepath.Join(dest, pp)
|
||||
|
||||
if f.FileInfo().IsDir() {
|
||||
err = os.MkdirAll(p, f.Mode())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue