Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-09-08 12:00:21 +0300
committerNick Thomas <nick@gitlab.com>2017-09-08 12:00:21 +0300
commit095a3406a96593fed87649073611c5844af02276 (patch)
tree61cc37a8840db1ae180da269c19367cdff5460be /domain.go
parent243bdbc4980905220706bdb9215a7d802eced502 (diff)
parentb1dc6395fefaf68c2f0197df7f0e30b8a750d1bb (diff)
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-pages
Diffstat (limited to 'domain.go')
-rw-r--r--domain.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/domain.go b/domain.go
index 358a71d8..28c89077 100644
--- a/domain.go
+++ b/domain.go
@@ -13,6 +13,7 @@ import (
"strings"
"time"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/httperrors"
"gitlab.com/gitlab-org/gitlab-pages/internal/httputil"
)
@@ -215,7 +216,7 @@ func (d *domain) serveFromGroup(w http.ResponseWriter, r *http.Request) {
}
// Serve generic not found
- serve404(w)
+ httperrors.Serve404(w)
}
func (d *domain) serveFromConfig(w http.ResponseWriter, r *http.Request) {
@@ -230,7 +231,7 @@ func (d *domain) serveFromConfig(w http.ResponseWriter, r *http.Request) {
}
// Serve generic not found
- serve404(w)
+ httperrors.Serve404(w)
}
func (d *domain) ensureCertificate() (*tls.Certificate, error) {