aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_server.go b/http_server.go
index 849afd9..0acb9a7 100644
--- a/http_server.go
+++ b/http_server.go
@@ -22,8 +22,8 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) {
var segments []string
var err error
var non_empty_last_segments_len int
- var params map[string]any
var separator_index int
+ params := make(map[string]any)
if segments, _, err = parse_request_uri(r.RequestURI); err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)