diff options
Diffstat (limited to 'pkg/server')
| -rw-r--r-- | pkg/server/serve.go (renamed from pkg/server/handle.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/handle.go b/pkg/server/serve.go index afe65ce..9e7b722 100644 --- a/pkg/server/handle.go +++ b/pkg/server/serve.go @@ -1,9 +1,9 @@ package server import ( - "fmt" "net/http" + "github.com/LMBishop/scrapbook/pkg/html" "github.com/LMBishop/scrapbook/pkg/index" ) @@ -12,7 +12,7 @@ func ServeSite(siteIndex *index.SiteIndex) func(w http.ResponseWriter, r *http.R site := siteIndex.GetSiteByHost(r.Host) if site == nil { w.WriteHeader(http.StatusNotFound) - fmt.Fprintf(w, "unknown host %s", r.Host) + html.NotFoundSitePage(r.Host) return } |
