diff options
Diffstat (limited to '')
-rw-r--r-- | router.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -16,6 +16,11 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } + if len(segments) < 2 { + http.Error(w, "Blank system endpoint", http.StatusNotFound) + return + } + if segments[0] == ":" { switch segments[1] { case "static": |