Fix for cached files from arvados-controller
authorGeorge Chlipala <gchlip2@uic.edu>
Mon, 28 Aug 2023 21:57:06 +0000 (16:57 -0500)
committerGeorge Chlipala <gchlip2@uic.edu>
Wed, 30 Aug 2023 18:50:40 +0000 (13:50 -0500)
Arvados-DCO-1.1-Signed-off-by: George Chlipala <gchlip2@uic.edu>

AUTHORS
lib/controller/handler.go

diff --git a/AUTHORS b/AUTHORS
index fa9fa86d34efe9aae853ca24d717974eb8513edc..cb09dc67ae1030a77c4f1e2cd4538700d952f664 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -22,3 +22,4 @@ Curii Corporation <*@curii.com>
 Dante Tsang <dante@dantetsang.com>
 Codex Genetics Ltd <info@codexgenetics.com>
 Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
+George Chlipala <gchlip2@uic.edu>
index bfcb98b9d9deccd58221c4a87edd59624e8fbc31..08a3a1a93ddb3446cd463ee04af8ef846da4a49a 100644 (file)
@@ -282,7 +282,7 @@ func (ent *cacheEnt) refresh(path string, do func(*http.Request) (*http.Response
        // 0.0.0.0:0 is just a placeholder here -- do(), which is
        // localClusterRequest(), will replace the scheme and host
        // parts with the real proxy destination.
-       req, err := http.NewRequestWithContext(ctx, http.MethodGet, "http://0.0.0.0:0/"+path, nil)
+       req, err := http.NewRequestWithContext(ctx, http.MethodGet, "http://localhost" + path, nil)
        if err != nil {
                return nil, nil, err
        }