(w http.ResponseWriter, r *http.Request)
| 437 | } |
| 438 | |
| 439 | func (h *httpHandlers) handleDynContent(w http.ResponseWriter, r *http.Request) { |
| 440 | defer func() { |
| 441 | panicErr := util.PanicHandler("handleDynContent", recover()) |
| 442 | if panicErr != nil { |
| 443 | http.Error(w, fmt.Sprintf("internal server error: %v", panicErr), http.StatusInternalServerError) |
| 444 | } |
| 445 | }() |
| 446 | |
| 447 | // Strip /assets prefix and update the request URL |
| 448 | r.URL.Path = strings.TrimPrefix(r.URL.Path, "/dyn") |
| 449 | if r.URL.Path == "" { |
| 450 | r.URL.Path = "/" |
| 451 | } |
| 452 | |
| 453 | h.Client.UrlHandlerMux.ServeHTTP(w, r) |
| 454 | } |
| 455 | |
| 456 | func (h *httpHandlers) handleSSE(w http.ResponseWriter, r *http.Request) { |
| 457 | defer func() { |
nothing calls this directly
no test coverage detected