Router cleanup

This commit is contained in:
Brahim Hadriche committed 2022-11-28 12:19:40 -05:00
1 parent e0cc6970ab
commit 27b4ad90d3
6 files changed
+29 -47

No files matched your search

+9 -1
View File
@@ -13,6 +13,7 @@ namespace Http
' members
private method = invalid
private uri = invalid
private route = invalid
private query = invalid
private protocol = invalid
private buffer = invalid
@@ -171,7 +172,14 @@ namespace Http
end function
function ProcessOperation()
m.query = WebUtils.UrlQueryComponents(m.uri)
m.route = m.uri
split = m.route.Instr("?")
if split <> -1
m.route = m.route.Left(split)
m.query = WebUtils.UrlQueryComponents(m.uri)
else
m.query = {}
end if
end function
function ParseRange()