(w http.ResponseWriter, r *http.Request)
| 172 | } |
| 173 | |
| 174 | func (h *handler) serveHTTP(w http.ResponseWriter, r *http.Request) { |
| 175 | if h.mux == nil { |
| 176 | http.Error(w, "handler not properly initialized", http.StatusInternalServerError) |
| 177 | return |
| 178 | } |
| 179 | r.URL.Path = strings.Replace(r.URL.Path, app.PathPrefix(r), "/", 1) |
| 180 | h.mux.ServeHTTP(w, r) |
| 181 | } |
| 182 | |
| 183 | type rootData struct { |
| 184 | BaseURL string |
no test coverage detected