From 923d78eaa30becd0afed3943b75a5230e934037f Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 22 Feb 2024 23:31:03 +0100 Subject: [PATCH] Fix handling of WHIP URLs. We broke WHIP when we introduced splitPath. Thanks to Tim Panton. --- webserver/whip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/whip.go b/webserver/whip.go index 59fbe7e..324d7d6 100644 --- a/webserver/whip.go +++ b/webserver/whip.go @@ -146,7 +146,7 @@ func whipEndpointHandler(w http.ResponseWriter, r *http.Request) { } pth, kind, pthid := splitPath(r.URL.Path) - if kind != ".whip" || pthid != "/" { + if kind != ".whip" || pthid != "" { http.Error(w, "Internal server error", http.StatusInternalServerError) return