(w http.ResponseWriter, r *http.Request, msg, code string, status int)
| 331 | } |
| 332 | |
| 333 | func (s *Server) respondWithStatus(w http.ResponseWriter, r *http.Request, msg, code string, status int) { |
| 334 | localizer := localization.GetLocalizer(r) |
| 335 | |
| 336 | templ.Handler(web.Base(localizer.T("oh_noes"), web.ErrorPage(msg, s.opts.WebmasterEmail, code, localizer), s.policy.Impressum, localizer), templ.WithStatus(status)).ServeHTTP(w, r) |
| 337 | } |
| 338 | |
| 339 | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 340 | if strings.HasPrefix(r.URL.Path, anubis.BasePrefix+anubis.StaticPath) { |
no test coverage detected