Explorar el Código

Fix HTTPServer bug

Stan hace 1 día
padre
commit
05b851a1e1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      http_server.go

+ 2 - 1
http_server.go

@@ -136,7 +136,8 @@ func (this *HTTPServer) ServeHTTP(responseStream http.ResponseWriter, requestStr
 
 	// Parse GET query
 	if method == METHOD_GET && handler.Data != nil {
-		query := map[string]any{}
+		// TODO: support arrays
+		query := map[string]string{}
 		for key, values := range requestStream.URL.Query() {
 			for _, value := range values {
 				query[key] = value