Fix handling of WHIP URLs.
We broke WHIP when we introduced splitPath. Thanks to Tim Panton.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user