diff options
| author | Shulhan <m.shulhan@gmail.com> | 2023-11-10 01:15:14 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2026-04-15 01:18:20 +0700 |
| commit | 7e9549ca07d64fab942f05373521024eb45b2faa (patch) | |
| tree | 5e12ca94b82d23bfe96aba67340e645f09898bb1 /internal/pkgdoc | |
| parent | e122483a7eb0ea0da07ed6d58ce1c8756c6f2d48 (diff) | |
| download | go-x-website-7e9549ca07d64fab942f05373521024eb45b2faa.tar.xz | |
[DO-NOT-MERGE] cmd/golangorg: allow serving in local as "go.local"
Change-Id: I73aa112ba125b56dbdaf2727a3a7165c03de9b3f
Diffstat (limited to 'internal/pkgdoc')
| -rw-r--r-- | internal/pkgdoc/doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkgdoc/doc.go b/internal/pkgdoc/doc.go index 75e556df..98d48a67 100644 --- a/internal/pkgdoc/doc.go +++ b/internal/pkgdoc/doc.go @@ -437,7 +437,7 @@ func (d *docs) ServeHTTP(w http.ResponseWriter, r *http.Request) { suffix += "GOARCH=" + url.QueryEscape(goarch) } } - http.Redirect(w, r, "https://pkg.go.dev/"+relpath+suffix, http.StatusTemporaryRedirect) + http.Redirect(w, r, "https://pkg.go.local/"+relpath+suffix, http.StatusTemporaryRedirect) return } |
