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:
parent
bfe83d1a27
commit
923d78eaa3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue