aboutsummaryrefslogtreecommitdiff
path: root/internal/pkgdoc/doc.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2023-11-10 01:15:14 +0700
committerShulhan <m.shulhan@gmail.com>2026-04-15 01:18:20 +0700
commit7e9549ca07d64fab942f05373521024eb45b2faa (patch)
tree5e12ca94b82d23bfe96aba67340e645f09898bb1 /internal/pkgdoc/doc.go
parente122483a7eb0ea0da07ed6d58ce1c8756c6f2d48 (diff)
downloadgo-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/doc.go')
-rw-r--r--internal/pkgdoc/doc.go2
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
}