diff options
Diffstat (limited to 'internal/domain/domain.go')
-rw-r--r-- | internal/domain/domain.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go index f7eba5ca..28eb3196 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -162,10 +162,8 @@ func (d *Domain) EnsureCertificate() (*tls.Certificate, error) { // ServeFileHTTP returns true if something was served, false if not. func (d *Domain) ServeFileHTTP(w http.ResponseWriter, r *http.Request) bool { if d.isUnconfigured() || !d.HasLookupPath(r) { - // TODO: this seems to be wrong: - // as we should rather return false, - // and fallback to `ServeNotFoundHTTP` - // to handle this case + // TODO: this seems to be wrong: as we should rather return false, and + // fallback to `ServeNotFoundHTTP` to handle this case httperrors.Serve404(w) return true } |