(w http.ResponseWriter, r *http.Request)
| 325 | } |
| 326 | |
| 327 | func handleStreamLocalFile(w http.ResponseWriter, r *http.Request) { |
| 328 | path := r.URL.Query().Get("path") |
| 329 | if path == "" { |
| 330 | http.Error(w, "path is required", http.StatusBadRequest) |
| 331 | return |
| 332 | } |
| 333 | no404 := r.URL.Query().Get("no404") |
| 334 | handleLocalStreamFile(w, r, path, no404 != "") |
| 335 | } |
| 336 | |
| 337 | func handleStreamFile(w http.ResponseWriter, r *http.Request) { |
| 338 | path := r.URL.Query().Get("path") |
nothing calls this directly
no test coverage detected