mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat: add dynamic parameters websocket endpoint (#17165)
This commit is contained in:
+2
-3
@@ -9,9 +9,8 @@ import (
|
||||
"github.com/spf13/afero/tarfs"
|
||||
)
|
||||
|
||||
// FromTarReader creates a read-only in-memory FS
|
||||
func FromTarReader(r io.Reader) fs.FS {
|
||||
tr := tar.NewReader(r)
|
||||
tfs := tarfs.New(tr)
|
||||
rofs := afero.NewReadOnlyFs(tfs)
|
||||
return afero.NewIOFS(rofs)
|
||||
return afero.NewIOFS(tarfs.New(tr))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user