mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-14 20:35:32 +01:00
fix (bundle): bundler assets path missmatch
This commit is contained in:
parent
b7e0b1ad25
commit
0e2a570594
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ func ServeBundle(ctx *App, res http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
urls := req.URL.Query()["url"]
|
urls := req.URL.Query()["url"]
|
||||||
for i := 0; i < len(urls); i++ {
|
for i := 0; i < len(urls); i++ {
|
||||||
curPath := "assets" + strings.TrimPrefix(urls[i], "/assets/"+BUILD_REF)
|
curPath := "/assets/" + strings.TrimPrefix(urls[i], "/assets/"+BUILD_REF+"/")
|
||||||
var file io.ReadCloser
|
var file io.ReadCloser
|
||||||
var err error
|
var err error
|
||||||
if f := applyPatch(curPath); f != nil {
|
if f := applyPatch(curPath); f != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue