diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index cd68367e8..dcfadec24 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -16,9 +16,9 @@ Mention briefly how you have applied the fix. ## What GitHub issue(s) does this PR fix or close? Fixes # diff --git a/cmd/proxy/actions/app_proxy.go b/cmd/proxy/actions/app_proxy.go index 799950494..c3e74b8a1 100644 --- a/cmd/proxy/actions/app_proxy.go +++ b/cmd/proxy/actions/app_proxy.go @@ -44,7 +44,7 @@ func addProxyRoutes( r.HandleFunc(supportPath, func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) }) - sumHandler := sumdbPoxy(sumdbURL, c.NoSumPatterns) + sumHandler := sumdbProxy(sumdbURL, c.NoSumPatterns) pathPrefix := "/sumdb/" + sumdbURL.Host r.PathPrefix(pathPrefix + "/").Handler( http.StripPrefix(pathPrefix, sumHandler), diff --git a/cmd/proxy/actions/sumdb.go b/cmd/proxy/actions/sumdb.go index 491081d86..24018b1ce 100644 --- a/cmd/proxy/actions/sumdb.go +++ b/cmd/proxy/actions/sumdb.go @@ -9,7 +9,7 @@ import ( "github.com/gomods/athens/pkg/paths" ) -func sumdbPoxy(url *url.URL, nosumPatterns []string) http.Handler { +func sumdbProxy(url *url.URL, nosumPatterns []string) http.Handler { rp := httputil.NewSingleHostReverseProxy(url) rp.Director = func(req *http.Request) { req.Host = url.Host diff --git a/cmd/proxy/actions/sumdb_test.go b/cmd/proxy/actions/sumdb_test.go index 7b6687188..195b9176a 100644 --- a/cmd/proxy/actions/sumdb_test.go +++ b/cmd/proxy/actions/sumdb_test.go @@ -20,7 +20,7 @@ func TestSumdbProxy(t *testing.T) { panic(err) } pathPrefix := "/sumdb/" + surl.Host - h := sumdbPoxy(surl, nil) + h := sumdbProxy(surl, nil) h = http.StripPrefix(pathPrefix, h) targetURL := "/sumdb/" + surl.Host + "/latest"