1
Fork 0

Fix handling of WHIP URLs.

We broke WHIP when we introduced splitPath.  Thanks to Tim Panton.
This commit is contained in:
Juliusz Chroboczek 2024-02-22 23:31:03 +01:00
parent bfe83d1a27
commit 923d78eaa3
1 changed files with 1 additions and 1 deletions

View File

@ -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