aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index 4c409fb..2f32132 100644
--- a/handler.go
+++ b/handler.go
@@ -60,7 +60,7 @@ func (h packageHandler) Handle(w http.ResponseWriter, r *http.Request, ps httpro
}{
Repo: h.pkg.Repo,
CanonicalURL: canonicalURL,
- GodocURL: fmt.Sprintf("https://godoc.org/%s%s", canonicalURL, ps.ByName("path")),
+ GodocURL: fmt.Sprintf("https://%s/%s%s", h.config.Godoc.Host, canonicalURL, ps.ByName("path")),
}
if err := packageTemplate.Execute(w, data); err != nil {
http.Error(w, err.Error(), 500)