1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

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

View file

@ -146,7 +146,7 @@ func whipEndpointHandler(w http.ResponseWriter, r *http.Request) {
} }
pth, kind, pthid := splitPath(r.URL.Path) pth, kind, pthid := splitPath(r.URL.Path)
if kind != ".whip" || pthid != "/" { if kind != ".whip" || pthid != "" {
http.Error(w, "Internal server error", http.Error(w, "Internal server error",
http.StatusInternalServerError) http.StatusInternalServerError)
return return