This commit is contained in:
@@ -670,16 +670,13 @@ func registerPublicDownloads(mux *http.ServeMux, store filesvc.MeshStore, blobs
|
||||
}
|
||||
|
||||
// 3) Aus Mesh holen — EIGENER Timeout-Kontext, NICHT r.Context()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
||||
defer cancel()
|
||||
rrc, remoteName, _, _, err := meshNode.FetchBlobAny(ctx, id)
|
||||
rrc, remoteName, _, _, err := meshNode.FetchBlobAny(context.Background(), id)
|
||||
if err != nil {
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
}
|
||||
defer rrc.Close()
|
||||
|
||||
// Dateiname bevorzugt vom Remote, sonst Metadaten-Name
|
||||
filename := strings.TrimSpace(remoteName)
|
||||
if filename == "" {
|
||||
filename = it.Name
|
||||
|
||||
Reference in New Issue
Block a user